online png to pdf code example
Example: png to pdf
$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