On 10/11/2017 10:28 AM, Beugnier, Ronny (IP&Science) wrote:
Thanks for the feedback !

But I do not know the width since it is not always the same image.

I also  tried scale-down-to-fit but could not get it to work.

BTW: I am using fop 2.2

-----Original Message-----
From: Terence M. Bandoian [mailto:tere...@tmbsw.com]
Sent: woensdag, oktober 11, 2017 17:24
To: fop-users@xmlgraphics.apache.org
Subject: Re: Scaling image problem

On 10/11/2017 9:39 AM, Beugnier, Ronny (IP&Science) wrote:
Hi,

I am looking for a way that an image scales to fit the page. I have
tried various solutions but non worked.

The image on the page is too big to fit the page so it is not shown
entirely. How can I scale in fop to see the full image on the image ?

Many Thanks !

Ronny


Hi, Ronny-

In my case, I was able set the width (only the width) of the 
<fo:external-graphic> element to a value in inches.

-Terence Bandoian
   http://www.tmbsw.com/


In the software that generates the XML to be transformed, I read the image size and calculate the desired width - in inches - so that the image will fit on the page.

-Terence


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to