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
Post a Comment