Jump to content

JasperReport scales images when exporting to PDF, thus losing quality


alancf

Recommended Posts

Hi,
I have a report designed with iReport 1.3.0. This report includes several images, which are loaded dynamically. Then I use JasperRunManager.runReportToPdfFile to create the PDF. Everything in the PDF looks fine except for the images, which appear scaled.
Can anyone tell me what am I doing wrong?
Thanks.

P.S.: I've just downloaded and installed the newest version (4.0.0). I've tried a preview of the report, and the images still appear scaled. There must be some config parameter I'm missing, but I can't figure out which one. Please help!

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

In iReport, select the image.  In the "Properties" pane under "Image properties", look for "Scale Image".  Your choices are Clip, Fill Frame, Retain Shape, Real Size, and Real Height.  I just tried using "Clip", and it worked pretty well for me, but it's easy enough to try all five and see if any of them work for your situation.

Carl

Link to comment
Share on other sites

  • 3 months later...
  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...