FOP v2.2 - Image overlaps text line.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

FOP v2.2 - Image overlaps text line.

apurba
I have this below template with reference to a image from local hard drive.
When i run this template in fop v2.2 the image overlapps the text "Distance
Ex" in the result PDF file(image is of size 1500px/700px) We have used a
older fop library 0.20.x where this overlapping issue is not there with the
same template. Is there any fix or patch is available for this issue on FOP
v2.2.

<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:nsdc="http://www.rtf2fo.com/NSDC"
line-stacking-strategy="font-height">
    <fo:layout-master-set>
        <fo:page-sequence-master master-name="pm0">
            <fo:repeatable-page-master-alternatives>
                <fo:conditional-page-master-reference page-position="first"
odd-or-even="any" master-reference="pm0-first"/>
                <fo:conditional-page-master-reference page-position="any"
odd-or-even="any" master-reference="pm0-any"/>
            </fo:repeatable-page-master-alternatives>
        </fo:page-sequence-master>
        <fo:simple-page-master page-width="612pt" page-height="792pt"
master-name="pm0-first" margin-top="36pt" margin-right="90pt"
margin-left="90pt" margin-bottom="36pt">
            <fo:region-body region-name="body" overflow="visible"
margin-top="36pt" margin-bottom="36pt"/>
            <fo:region-before region-name="header-first" overflow="visible"
extent="720pt"/>
            <fo:region-after region-name="footer-first" overflow="hidden"
extent="36pt" display-align="after"/>
        </fo:simple-page-master>
        <fo:simple-page-master page-width="612pt" page-height="792pt"
master-name="pm0-any" margin-top="36pt" margin-right="90pt"
margin-left="90pt" margin-bottom="36pt">
            <fo:region-body region-name="body" overflow="visible"
margin-top="36pt" margin-bottom="36pt"/>
            <fo:region-before region-name="header" overflow="visible"
extent="720pt"/>
            <fo:region-after region-name="footer" overflow="hidden"
extent="36pt" display-align="after"/>
        </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence widows="2" white-space-collapse="false" orphans="2"
master-reference="pm0">
        <fo:static-content flow-name="header-first">
            <fo:block line-height="14.75pt">
                <fo:leader line-height="14.75pt"/>
            </fo:block>
            <fo:block line-height="14.75pt">
                <fo:leader line-height="14.75pt"/>
            </fo:block>
        </fo:static-content>
        <fo:flow flow-name="body">
            <fo:block start-indent="0pt" end-indent="0pt" text-indent="0pt"
text-align="center" line-height="14.75pt">
                <fo:inline font-family="Times Roman, serif" font-size="12pt"
font-weight="bold">
                    <fo:inline text-decoration="underline">Image
Test</fo:inline>
                </fo:inline>
            </fo:block>
            <fo:block start-indent="0pt" end-indent="0pt" text-indent="0pt"
text-align="start" line-height="14.75pt">
                <fo:inline font-family="Times Roman, serif"
font-size="12pt">Distance Ex</fo:inline>
            </fo:block>
            <fo:block line-height="14.75pt">
                <fo:leader line-height="14.75pt"/>
            </fo:block>
            <fo:block line-height="14.75pt">
                <fo:leader line-height="14.75pt"/>
            </fo:block>
           
            <fo:block start-indent="0pt" end-indent="0pt" text-indent="0pt"
text-align="start" line-height="14.75pt">
                <fo:external-graphic width="128.77pt"
src="url(./051318104124.images/pict0.png)" scaling="non-uniform"
height="62.58pt" content-width="128.77pt" content-height="62.58pt"/>
            </fo:block>
            <fo:block line-height="14.75pt">
                <fo:leader line-height="14.75pt"/>
            </fo:block>
            <fo:block start-indent="0pt" end-indent="0pt" text-indent="0pt"
text-align="justify" line-height="14.75pt">
                <fo:inline font-family="Times Roman, serif" font-size="12pt"
font-style="italic">Foot Note</fo:inline>
            </fo:block>
        </fo:flow>
    </fo:page-sequence>
</fo:root>



--
Sent from: http://apache-fop.1065347.n5.nabble.com/FOP-Users-f3.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]