You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Beugnier, Ronny (IP&Science)" <ro...@Clarivate.com> on 2017/10/11 14:39:04 UTC

Scaling image problem

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

Re: Scaling image problem

Posted by Csaba Nánai <sz...@gmail.com>.
Hi

Try the scaling=uniform and content-width attributes. Séta content-width tó
the neked is 210mm forint a4 page, or Minus border.

If you dont know which length fills better the page (w or h) there is not a
known solution to calculate it.

Best regards Szeak

2017. okt. 11. 16:55 ezt írta ("Beugnier, Ronny (IP&Science)" <
ronny.beugnier@clarivate.com>):

> 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
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>

Re: Scaling image problem

Posted by "Terence M. Bandoian" <te...@tmbsw.com>.
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:terence@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-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


RE: Scaling image problem

Posted by "Beugnier, Ronny (IP&Science)" <ro...@Clarivate.com>.
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:terence@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/


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


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


Re: Scaling image problem

Posted by "Terence M. Bandoian" <te...@tmbsw.com>.
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/


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