Hi,

I'm trying to make some sort of wysiwyg for datasheets. The end user can
produce highres and lowres pdf. The only thing that come in mind was to make
the images lowres and keep fonts etc the same way as the high pdf.

I have 450, 300 dpi images for highres. when setting this in my application
using iText I use scalePercent

72 / 450 * 100 = 16% scale
72 / 300 * 100 = 24% scale

Before using the lowres images I use Imagemagick to set the density and 
scale the images. The lowres images should be. 100 dpi

// With Imagemagick
For the 450 dpi images I scale them to
100 / 450 = 22% and set 100 dpi
100 / 300 = 33% and set 100 dpi.

// iText
In my application using iText I do the same
72 / 100 = 72% and so on.

My problem is that the images isn't rendered exactly the same. In some cases
the images is a whole A4 page and the diffrens is clear. How should I make a
lowres and highres and getting the same result. what is the best way of
constructing lowres pdf:s.

I know that this is a rounding and that 22.2222222% is more correct but I
guess there is a better way of constructing low pdf. First I tried just with
Image magick and converted the pdf to 100 dpi but the fonts etc got very
blurry.

/ Mathias 


-- 
View this message in context: 
http://old.nabble.com/Need-to-be-certain-images-and-scale-tp28355138p28355138.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to