Re: Scaling image problem

"Terence M. Bandoian" <[email protected]>
Newsgroups gmane.text.xml.fop.user
Message-ID <[email protected]>
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:[email protected]]
> Sent: woensdag, oktober 11, 2017 17:24
> To: [email protected]
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.