PDF to ppm save progressive jpg

607 Views Asked by At

I'm trying to convert a PDF to jpg images, but I want the images saved as progressive jpgs.

I'm using pdftoppm to do this. This is the command :

$imageExecCommand = 'pdftoppm -jpeg -cropbox -r 100 -f ' . $pageToCopy . ' -l ' . $pageToCopy . ' ' . $localPdf . ' ' . SERVER_ROOT . '/files/' . $hash;

How can I make the jpeg progressive?

1

There are 1 best solutions below

0
On

Use pdftoppm command Then Iterate the generated ppm files, then run convert Image.ppm to Image.jpg using imagemagick