[poppler] pdftoppm: resulting image dpi and/or size is unexpected
Albert Astals Cid
aacid at kde.org
Mon May 7 14:17:53 PDT 2012
El Dilluns, 7 de maig de 2012, a les 16:58:27, Carlos Fernandez va escriure:
> trying to split a pdf into page images using pdftoppm. I would like
> the resulting images to maintain the same size and scale as the source
> PDF. unfortunately the images being generated are somewhat
> unexpected.
>
> using "-r 150" (or just relying on the default value of 150) to create
> an image on a 8.5x11 inch pdf generates an image that is 1275 × 1651
> pixels at 150dpi.
>
> using "-r 240" to create an image on the same 8.5x11 inch pdf
> generates an image that is 2040 x 2640 pixels at 239.97 dpi.
Hmmm, really?
2040/8.5 = 240 not 239.97
2640/11 = 240 not 239.97
>
> these results were consistent for png or tiff output. I got similar
> results for other dpi settings across a few different PDFs.
>
> What can i do to get more consistent results?
What's inconsistent?
Albert
>
> Carlos
> _______________________________________________
> poppler mailing list
> poppler at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/poppler
More information about the poppler
mailing list