Hi All, I use FOP 1.0 to produce PDFs. The issue I am facing is that the content of the page is such that it should span over multiple pages but I only get one single page PDF file. I believe I am missing something very obvious.
Here is a sample of the XSL-FO I feed FOP and I am attaching the PDF that this produces too. As you can see one of the blocks in the flow (TEXT 9) has over 30 children blocks and, based on their positions on the page, this would lead to part of the content to spill over a second page.However, as can be seen in the PDF output attached, the content gets truncated and the PDF contains just one page. Is this something to do with my XSL-FO or is it something I am missing of FOP ?. Thank you very much in advance. Regards, Fernando <?xml version="1.0" encoding="UTF-8"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master master-name="A4" reference-orientation= "0" page-width="21cm" page-height="29.7cm" margin-top="2.0cm" margin-right= "2.0cm" margin-bottom="2.0cm" margin-left="2.0cm"> <fo:region-body margin="0cm"/> <fo:region-before extent="0cm"/> <fo:region-after extent="0cm"/> <fo:region-start extent="0cm"/> <fo:region-end extent="0cm"/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="A4"> <fo:flow flow-name="xsl-region-body"> <fo:block-container overflow="visible" position="absolute"top= "0.05cm" left="10.95cm" width="6cm" block-progression-dimension="1cm"background-color= "rgb(255,255,255)" border=""> <fo:block position="absolute" font-family="Comic Sans MS,cursive" font-size="16px" font-weight="700" font-style="normal"text-align= "right" color="rgb(0,0,0)" padding="4px"> <fo:block>TEXT 1</fo:block> </fo:block> </fo:block-container> <fo:block-container overflow="visible" position="absolute"top= "3.3cm" left="7.95cm" width="9cm" block-progression-dimension="2cm"background-color= "rgb(255,255,255)" border=""> <fo:block position="absolute" font-family="Comic Sans MS,cursive" font-size="16px" font-weight="400" font-style="normal"text-align= "left" color="rgb(87,84,87)" padding="4px"> <fo:block>TEXT 2</fo:block> <fo:block>TEXT 3</fo:block> </fo:block> </fo:block-container> <fo:block-container overflow="visible" position="absolute"top= "1.3cm" left="0.05cm" width="4cm" block-progression-dimension="1cm"background-color= "rgb(255,255,255)" border=""> <fo:block position="absolute" font-family="Comic Sans MS,cursive" font-size="16px" font-weight="700" font-style="normal"text-align= "left" color="rgb(0,0,0)" padding="4px"> <fo:block>TEXT 4</fo:block> </fo:block> </fo:block-container> <fo:block-container overflow="visible" position="absolute"top= "2.3cm" left="0.05cm" width="7cm" block-progression-dimension="3cm"background-color= "rgb(255,255,255)" border=""> <fo:block position="absolute" font-family="Comic Sans MS,cursive" font-size="12px" font-weight="400" font-style="normal"text-align= "left" color="rgb(0,0,0)" padding="4px"> <fo:block>TEXT 5</fo:block> <fo:block>TEXT 6</fo:block> <fo:block>TEXT 7</fo:block> <fo:block>TEXT 8</fo:block> </fo:block> </fo:block-container> <fo:block-container overflow="visible" position="absolute"top= "8.3cm" left="0.05cm" width="auto" block-progression-dimension="auto"background-color= "rgb(255,255,255)" border=""> <fo:block position="absolute" font-family="Comic Sans MS,cursive" font-size="16px" font-weight="700" font-style="normal"text-align= "left" color="rgb(0,0,0)" padding="4px"> <fo:block>TEXT 9</fo:block> <fo:block> Here is some sample code </fo:block> <fo:block> Here is some sample code </fo:block> <fo:block> Here is some sample code </fo:block> <fo:block> Here is some sample code </fo:block> <fo:block> Here is some sample code </fo:block> <fo:block> Here is some sample code </fo:block> <fo:block> Here is some sample code </fo:block> <fo:block> Here is some sample code </fo:block> <fo:block> Here is some sample code </fo:block> <fo:block> Here is some sample code </fo:block> <fo:block> Here is some sample code </fo:block> <fo:block> Here is some sample code </fo:block> <fo:block> Here is some sample code </fo:block> <fo:block> Here is some sample code </fo:block> <fo:block> Here is some sample code </fo:block> <fo:block> Here is some sample code </fo:block> <fo:block> Here is some sample code </fo:block> <fo:block> Here is some sample code </fo:block> <fo:block> Here is some sample code </fo:block> <fo:block> Here is some sample code </fo:block> <fo:block> Here is some sample code </fo:block> <fo:block> Here is some sample code </fo:block> <fo:block> Here is some sample code </fo:block> <fo:block> Here is some sample code </fo:block> <fo:block> Here is some sample code </fo:block> <fo:block> Here is some sample code </fo:block> <fo:block> Here is some sample code </fo:block> <fo:block> Here is some sample code </fo:block> <fo:block> Here is some sample code </fo:block> <fo:block> Here is some sample code </fo:block> <fo:block> Here is some sample code </fo:block> <fo:block> Here is some sample code </fo:block> </fo:block> </fo:block-container> </fo:flow> </fo:page-sequence> </fo:root>
FopTest.pdf
Description: Adobe PDF document
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
