📜  png 到 pdf - PHP 代码示例

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

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