📅  最后修改于: 2022-03-11 14:58:57.552000             🧑  作者: Mango
$images = array("your-file.png"); //You can use a URL as well
$pdf = new Imagick($images);
$pdf->setImageFormat('pdf');
$pdf->writeImages('output-file.pdf', true); //The file name
//When ran, it will save in the same directory as the php file/script