Hey Guyz,
Does anyone know of any php code that can be used to convert pdf files to image files like jpeg, png etc?
Hey Guyz,
Does anyone know of any php code that can be used to convert pdf files to image files like jpeg, png etc?
Iknow there is a PDF Imaging Add-On.it provides standard options to convert PDF to other formats like:
Use C# code to convert PDF document to image file
Use C# code to convert PDF document to HTML
Use C# code to convert PDF document to Word
Use C# code to convert PDF document to TIFF
Use C# code to convert PDF document to Text
YOU can find it and download it
I don’t think there is a reliable PDF renderer written entirely in PHP. I would use ImageMagick if it’s available on your server.
exec('convert input.pdf output.png');
If the resulting image is too small, try it with those switches:
exec("convert -density 150 -depth 8 -quality 85 -append input.pdf output.png");
The -append switch concatenates all pages from the PDF if there is more than one.
As you mentioned a PDF add-on and i just need such a solution to convert PDF to image. I wonder where can i get its trial, and is it free to use?