[ https://issues.apache.org/jira/browse/FOP-2616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ramnikunj Prajapati updated FOP-2616: ------------------------------------- Attachment: readme.txt MakeBill.xsl logo.jpg JavaCodePDF.java InternetBillwithBlankPageError.xml InternetBillwithBlankPageError.pdf InternetBill.xml InternetBill.pdf I am using FOP Version 2.0. Include it in your program library. Run the java program JavaCodePDF by passing command line arguments. Eg: C:\InternetBill.xml C:\MakeBill.xsl C:\pdf\InternetBill.pdf 1st argument is the path of XML file. 2nd is the path of xsl file 3rd is the path where output pdf file will be stored > Extra blank page gets created even though the content fits in previous page > --------------------------------------------------------------------------- > > Key: FOP-2616 > URL: https://issues.apache.org/jira/browse/FOP-2616 > Project: FOP > Issue Type: Bug > Environment: windows 7, Java 1.8 > Reporter: Ramnikunj Prajapati > Attachments: InternetBill.pdf, InternetBill.xml, > InternetBillwithBlankPageError.pdf, InternetBillwithBlankPageError.xml, > JavaCodePDF.java, MakeBill.xsl, logo.jpg, readme.txt > > > Hi, > We are creating a pdf out of a xml using xsl and FOP library. We have set > header and footer for all pages. We have a coupon which needs to be > positioned at the bottom of last page of pdf and when the coupon is in the > bottom the footer text should not appear. If the data in the current page is > more to accommodate in one page than the extra data and coupon should be > shifted to the next page. The condition for coupon is that it should always > be placed in bottom of last page. We found an issue where if the data in the > body is about 36-39 lines which fits the current page with coupon still an > extra blank page gets added with the header. > For reference please check the xsl, sample xml and pdf which is placed in > this google drive folder: https://goo.gl/4Pwqev Please read the readme file > for more info -- This message was sent by Atlassian JIRA (v6.3.4#6332)