This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to avoid image scaling with apache fop  RSS feed

 
kopparapu v kiran kumar
Ranch Hand
Posts: 32
Chrome Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!