Page 1 of 1

pdf read option densityImage

Posted: 2011-04-25T19:28:01-07:00
by julia kim
Hello~
I've converted pdf into jpeg image
width/height is different and quality is low.

I want to read Pdf in 300dpi

Code: Select all

list<Image> imageList;
readImages( &imageList, "D:\\1.pdf");

for_each(imageList.begin(), imageList.end(), resolutionUnitsImage::resolutionUnitsImage(PixelsPerInchResolution));
for_each(imageList.begin(), imageList.end(), densityImage::densityImage(Geometry(300, 300)));
                               
writeImages( imageList.begin(), imageList.end(), "D:\\1.jpg" );
http://edms.zenithst.com/NADi/1.pdf

Tell me how to fix my code, please.
Thank you~