📜  pdf to png - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:57.552000             🧑  作者: Mango

代码示例4
$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