Hi
I have some strange problems with imported, rotated images (png or gif). The
resulting PDF looks fine in Adobe Reader but printing is a problem and the
print product has either some white stripes in it or half of the image is
not printed.  My code looks like this:

URL myUrl = (URL) aMap.get("url");
Image myImg = Image.getInstance(myUrl);

if(orientation.equalsIgnoreCase("landscape")) {
  myImg.setRotationDegrees(270f);
  myImg.scaleAbsolute(new Double(this.height).longValue(), new
Double(this.width).longValue());
} else {
  myImg.scaleAbsolute(new Double(this.width).longValue(), new
Double(this.height).longValue());
}
this.cb.addImage(myImg);

There's is no printing problem if I don't rotate the image. I have a Reader
5 on Windows NT and Reader 7 on Linux. (There seems to be no problem with
Reader 8 as I'm reported from friends trying to print my stuff).

If I place the image inline - "this.cb.addImage(myImg, true)" - the print
product is ok but transparency is gone.

Any help is appreciated. Thanks.

regards
Stefan
-- 
View this message in context: 
http://www.nabble.com/Printing-problems-with-rotated-images-tp18085528p18085528.html
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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