PDF to ppm save progressive jpg

577 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 answers

0
Mahendra Singh Srini On

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