pdf - XSLFO page-break if current page is not empty -


i using xslfo generate pdfs time now, came across question, how call <fo:block break-after="page"/> without generating empty page? is, check if current page empty , in case, not call <fo:block break-after="page"/>?

anyone having solution this?

thanks in advance

well, using apache fop. xsl fo:

<fo:page-sequence master-reference="first">     <fo:flow flow-name="xsl-region-body">         <fo:block>test</fo:block>         <fo:block break-after="page"/>         <fo:block break-after="page"/>         <fo:block break-after="page"/>         <fo:block break-after="page"/>         <fo:block break-after="page"/>         <fo:block>test</fo:block>     </fo:flow> </fo:page-sequence> 

would render 2 pages in compliant xsl fo rendering engine. using renderx xep = 2 pages. using fop 6 pages (which wrong).


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -