Hi,

I am drawing a 'container' as a rectangle with line thickness 0.1f wthin a pdf 
and then scaling an image to fit the container exactly (origian bottom left 
corner). If the image source is a jpeg or gif the fit is exact i.e. you can 
slightly see the contianer lines all the way around the image. If the image 
source is a PDf file and I extract the image from the first page like so:

                    PdfReader reader = new PdfReader( location ) ;            
                    PdfImportedPage page = writer.getImportedPage( reader, 1 ) ;
                    image = Image.getInstance( page ) ;

then the image slightly overlaps the container to the right and top. The bottom 
and left sides of the container are ok but the image seems to be slightly 
taller and wider than expected. We are only talking about 0.2 of a mm here but 
this accuracy is vital to my application.

Is this a known issue or am I doing something wrong?

Thanks in advance,

Andrew

_________________________________________________________________
Welcome to the next generation of Windows Live
http://www.windowslive.co.uk/get-live
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to