Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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

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
Have you checked out Aspose?
subject: why does fop scale my images? (too big)
jQuery in Action, 3rd edition