[oXygen-user] Fit an image to half of PDF page

Oxygen XML Editor Support (Radu Coravu) support at oxygenxml.com
Tue Oct 2 05:58:54 CDT 2018


Hi Aman,

I'm not sure, maybe you could register and ask on the Apache FOP mailing 
list:

https://xmlgraphics.apache.org/fop/maillist.html

Regards,
Radu

Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

On 10/1/2018 8:12 AM, Aman Singh wrote:
> Hi All,
>
> I am new to XSL-FO
>
> I have inserted an image in my XSL-FO using below code:-
>
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
>   <fo:layout-master-set>
> <fo:simple-page-master master-name="simpleA4" page-height="30cm"
> page-width="21cm" margin-top="0cm" margin-bottom="0.5cm"
> margin-left="0.2cm" margin-right="0.2cm">
> <fo:region-body/>
> </fo:simple-page-master>
>   </fo:layout-master-set>
>   <fo:page-sequence master-reference="simpleA4">
> <fo:flow flow-name="xsl-region-body">
> <fo:block-container margin-left="-1%" margin-right="-1%"
> margin-top="-0.5% height="50%"">
> <fo:block>
> <fo:external-graphic src="D:\MainImage.jpg" width="100%" height="15cm"
> scaling="non-uniform" content-height="scale-to-fit"
> content-width="scale-to-fit"/>
> </fo:block>
> </fo:block-container>
> </fo:flow>
>   </fo:page-sequence>
>
> Is this the right way to fit the image half of page size of my PDF? or
> some standard way is there?
>
> Thank you,
> Rudra
>
>
> _______________________________________________
> oXygen-user mailing list
> oXygen-user at oxygenxml.com
> https://www.oxygenxml.com/mailman/listinfo/oxygen-user
>


More information about the oXygen-user mailing list