aspose file tools*
The moose likes XML and Related Technologies and the fly likes how to avoid image scaling with apache fop 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 "how to avoid image scaling with apache fop" Watch "how to avoid image scaling with apache fop" New topic
Author

how to avoid image scaling with apache fop

kopparapu v kiran kumar
Ranch Hand

Joined: Oct 16, 2008
Posts: 32

Hi,

I'm currently making use of FOP to generate the PDF documents. I'm facing an issue while placing the image file. The problem is that I want to keep the image as it is with the image original dimensions. So I'm not giving any properties to fo:external-graphic tag. But the image is shrinking. The version of fop I'm using is 0.94version.

What needs to be done to avoid this shrinking?

I tried by setting
option 0: tryied with scaling="non-uniform", with some dimensions but image is not rendered in the proper shape as required.
option 1: content-width="auto", content-height="auto", scaling="uniform", width="100%", height="100%"
option 2: content-width="scale-to-fit", content-height="scale-to-fit", scaling="uniform", width="100%", height="100%"


I'm able to see the image in the PDF document but it is shrinked the width and height of the image and placed in the pdf document. I want to avoid this shrinking and keep the image in the pdf as it is with it's original image dimensions.

Please provide me the solution for this.

Please do not worry about typos.

Thank you very much for the help!!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to avoid image scaling with apache fop