That's fixed in version 1.4.3.

Paulo

----- Original Message ----- 
From: "Omer" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, August 28, 2006 2:51 PM
Subject: [iText-questions] Image in landscape


> Hi,
> I am tring to add an image to a landscape template.
> When the template is portrait the image gets placed in
> the correct place but when the template is landscape
> the image is in the wrong place.
>
> When check the page size for the landscape template it
> gives me 8.5 width and 11 for height. I checked the
> size in acrobat and it gave 11 for width and 8.5 for
> height.
>
> My code is as follows:
>
> PdfStamper stamp2 = null;<br>
> stamp2 = new PdfStamper(reader, pdfBuffOutput, '\0');
> AcroFields form2 = stamp2.getAcroFields
> ();
>
> float[] mugShot =
> form2.getFieldPositions("mugshotImage");
> Rectangle rect = new Rectangle(mugShot[1], mugShot[2],
>
> MugShot[3],mugShot[4]);
>
> Image img =
> Image.getInstance(biometricData.getMugshotImage());
> img.scaleToFit(rect.width(), rect.height());
> img.setAbsolutePosition(mugShot[2]+ (rect.width() -
> img.scaledWidth()) / 2,mugShot[1] + (rect.height() -
> img.scaledHeight())   / 2);
>
> PdfContentByte cb = stamp2.getOverContent((int)
> mugShot[0]);
> cb.addImage(img);
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job 
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions 


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to