File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes why does fop scale my images? (too big) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "why does fop scale my images? (too big)" Watch "why does fop scale my images? (too big)" New topic

why does fop scale my images? (too big)

Robert Jaeger
Ranch Hand

Joined: Apr 29, 2002
Posts: 62

I am using the formatting object processor to transform from XML to PDF and I think it is a great thing.
However, my included images (PNGs) are scaled. I saved them with 96dpi, fop changes the size to display them in 72dpi, that is what I think. I cannot scale the images (make them smaller) in advance since they are screenshots (scaled screenshots look really bad).
It seems that it doesn't matter if I save an image with 72, 96 or 300dpi, they are always displayed about 30% to big
What can I do to avoid this problem?

It would be great if someone has a good advice
subject: why does fop scale my images? (too big)
It's not a secret anymore!