Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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
 
PREVIOUS NEXT
Tagged: #png #pdf
ADD COMMENT
Topic
Name
1+1 =