pdf read option densityImage

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
julia kim
Posts: 4
Joined: 2011-04-19T18:21:41-07:00
Authentication code: 8675308

pdf read option densityImage

Post 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~
Post Reply