[ https://issues.apache.org/jira/browse/FOP-3090?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17705302#comment-17705302 ]
Franziska Zäch commented on FOP-3090: ------------------------------------- Hi Dave, no, we have not solved the problem with FOP 2.7 or Fop 2.8. We have been using the FOP for years. First FOP 0. 85, then FOP 1. 1 and now FOP 2. 6. In all versions we used the same stylesheets. And the correct creation of the pages were given in all versions. However, since the FOP 2. 7 one case no longer works. I have shown this case in the test file Mustermann. xml. The files Mustermann_big_ok. xml and Mustermann_short_ok. xml are further test cases in which the processing works. (both for FOP 2. 6 and FOP 2. 7 and FOP 2. 8) The error with the file Mustermann. xml is not fixed! I would describe the error as follows: On the "single page" a range of 11. 8 cm is defined. The content (body) is therefore not 11. 8 cm shorter margin-bottom="11. 8cm" However, if data that would cause the area of the body to overflow, no 2nd page is created, where only the bank connection is created on it. Or the FOP calculates that this is not a single page and works like "FirstPageInvoice" and then has to add a "LastPageInvoice". That's a mistake in my eyes! What do you think? Best Regards Franziska > Incorrect page creation with master-reference="singlePage" > page-position="only"/> > --------------------------------------------------------------------------------- > > Key: FOP-3090 > URL: https://issues.apache.org/jira/browse/FOP-3090 > Project: FOP > Issue Type: Bug > Components: layout/page > Affects Versions: 2.7 > Environment: Windows 10 > Reporter: Franziska Zäch > Priority: Major > Attachments: Codelist_Template.xsl, CommonTemplateFO.xsl, > INVOICFO.xsl, Mustermann.2.7.pdf, Mustermann.pdf, Mustermann.xml, > Mustermann_big_ok.xml, Mustermann_big_ok.xml.pdf, Mustermann_short_ok.xml, > Mustermann_short_ok.xml.pdf, TextAusgabePDF.xml, fop_invoic.bat > > > After upgrading FOP 1. 1 to FOP 2. 7, the “Single Page” is no longer created > correctly if a 2nd page is to be created due to the data volume in “body” and > a region-after extent=”11. 8cm. > See appendix template. pdf: Here a 2nd page is created due to the data volume > (body)! > See Appendix Mustermann 2. 7. pdf: Due to the data volume (body) a 2nd page > should be created here! > Note: the bank details should only be printed once per document! > Note: with the FOP version 2. 6 the PDF is created correctly! > <fo:simple-page-master master-name="{color:#ff0000}singlePage{color}" > page-height="297mm" page-width="210mm" margin-top="15mm" margin-bottom="0mm" > margin-left="3mm" margin-right="2mm"> > <fo:region-body region-name="{color:#ff0000}body{color}" > margin-top="2.4cm" margin-b{color:#ff0000}ottom="11.8cm{color}" > margin-left="10mm"/> > <fo:region-before extent="2cm" > region-name="xsl-region-before"/> > <{color:#ff0000}fo:region-after extent="11.8cm{color}" > region-name="last-region-after" margin-right="40mm" display-align="after"/> > <fo:region-start extent="1cm" > region-name="xsl-region-start"/> > </fo:simple-page-master> > > <fo:page-sequence-master master-name="basicPSM"> > <fo:repeatable-page-master-alternatives> > <fo:conditional-page-master-reference > master-reference="singlePage" page-position="only"/> > -- This message was sent by Atlassian Jira (v8.20.10#820010)