I use fop.bat to convert fo file to pdf file. It display bad format to the fo file below. But If I change the order of last 2 block elements, It can create pdf in good format. I think It must FOP error. I used fop 0.20.4 and 0.20.5 in win2k. They have the same result. Thanks. /*******fo file****************/ <?xml version="1.0" encoding="gb2312"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master margin-right="0.25in" margin-left="0.25in" margin-bottom="0.25in" margin- top="0.25in" page-width="10in" page-height="11in" master-name="first"> <fo:region-body background-color="#ffffff"/> <fo:region-before/> </fo:simple-page-master> <fo:simple-page-master margin-right="0.25in" margin-left="0.25in" margin-bottom="0.25in" margin- top="0.25in" page-width="10in" page-height="11in" master-name="rest"> <fo:region-body background-color="#ffffff"/> <fo:region-before/> </fo:simple-page-master> <fo:page-sequence-master master-name="psmDW"> <fo:repeatable-page-master-alternatives> <fo:conditional-page-master-reference master-reference="first" page-position="first" /> <fo:conditional-page-master-reference master-reference="rest" page-position="rest" /> <!-- recommended fallback procedure --> <fo:conditional-page-master-reference master-reference="rest" /> </fo:repeatable-page-master-alternatives> </fo:page-sequence-master> </fo:layout-master-set> <fo:page-sequence master-reference="psmDW"> <fo:static-content flow-name="xsl-region-before"> </fo:static-content> <fo:flow flow-name="xsl-region-body"> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="5.553in" top="1.083in" width="1.937in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="left"></fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="3.896in" top="1.083in" width="0.980in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="right"></fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="4.926in" top="1.083in" width="0.551in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="right"></fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="5.553in" top="0.927in" width="1.937in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="left"></fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="3.896in" top="0.927in" width="0.980in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="right"></fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="4.926in" top="0.927in" width="0.551in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="right"></fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="5.553in" top="1.240in" width="1.937in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="left"></fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="3.896in" top="1.240in" width="0.980in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="right"></fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="4.926in" top="1.240in" width="0.551in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="right"></fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="5.553in" top="1.396in" width="1.937in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="left"></fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="3.896in" top="1.396in" width="0.980in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="right"></fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="4.926in" top="1.396in" width="0.551in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="right"></fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="5.553in" top="1.552in" width="1.937in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="left"></fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="3.896in" top="1.552in" width="0.980in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="right"></fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="4.926in" top="1.552in" width="0.551in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="right"></fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="5.553in" top="1.708in" width="1.937in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="left"></fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="3.896in" top="1.708in" width="0.980in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="right"></fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="4.926in" top="1.708in" width="0.551in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="right"></fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="5.553in" top="1.865in" width="1.937in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="left"></fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="3.896in" top="1.865in" width="0.980in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="right"></fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="4.926in" top="1.865in" width="0.551in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="right"></fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="5.553in" top="2.021in" width="1.937in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="left"></fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="3.896in" top="2.021in" width="0.980in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="right"></fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="4.926in" top="2.021in" width="0.551in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="right"></fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="5.553in" top="2.177in" width="1.937in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="left"></fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="3.896in" top="2.177in" width="0.980in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="right"></fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="4.926in" top="2.177in" width="0.551in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="right"></fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="0.656in" top="2.979in" width="1.126in" height="0.469in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="left">Central Texas College</fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="1.802in" top="2.979in" width="0.624in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="center">004003</fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="2.438in" top="2.979in" width="0.729in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="center"></fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="3.188in" top="3.312in" width="1.155in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="left">Killeen</fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="4.541in" top="3.312in" width="0.688in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="left">765494199</fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="4.354in" top="3.312in" width="0.166in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="left">TX</fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="5.947in" top="2.979in" width="0.604in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="center">490205</fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="7.303in" top="2.979in" width="1.791in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="center">BAILEY, ANDREW J</fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="9.115in" top="2.979in" width="0.668in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="center">1/6/03</fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="6.563in" top="2.979in" width="0.729in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="center">246-19-7470</fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="9.803in" top="2.979in" width="0.668in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="center">1/24/03</fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="3.188in" top="2.979in" width="2.750in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="left">Professional Truck Driving Training</fo:block> </fo:block-container> <fo:block-container background-color="transparent" border-style="none" position="absolute" left="3.188in" top="3.146in" width="2.750in" height="0.146in"> <fo:block background-color="transparent" color="#000000" font-size="8pt" font- family="Cyberbit" font-style="normal" font-weight="normal" text- decoration="none" text-align="left">6200 West Central Texas Expressway</fo:block> </fo:block-container> </fo:flow> </fo:page-sequence> </fo:root>
can you please attach the fo file to the bug, instead of just pasting the text of the fo file into the bug report. Text in the bug report gets word wrapped and consequently the xml is garbled.
Its a bug in the PDF renderer. As a workaround, either sort the block containers in increasing left position or add a thin white border to the containers (this will output PDF code which ends a block and causes the start of the next block container to be properly recognized). I wonder, however, why you don't use a table instead.
Fixed in FOP 0.94 and probably earlier versions
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed