XSL-FO specific page count

Here should go questions about transforming XML with XSLT and FOP.
HVV
Posts: 18
Joined: Fri Dec 02, 2016 4:02 pm

XSL-FO specific page count

Post by HVV » Wed Dec 23, 2020 12:06 am

Hi all,

I have an XSL-FO stylesheet to transform XML documents to PDF using Oxygen 18.1 and the Apache FOP processor. The output PDF should always have a page count that is divisible by 4, so that page count mod 4 = 0.

The stylesheet has 3 page-sequence elements: one for frontmatter, one for the body, and one for backmatter. If the total number of pages of those sequences combined does not equal 0 on mod 4, then blank pages should be added after the last sequence until it does.

My question is: is this even possible using Apache FOP? I believe the force-page-count attribute is meant for this kind of requirement, but it seems to be limited to an odd or even number of pages, not an amount of pages.

Regards,
Hugo

Radu
Posts: 7528
Joined: Fri Jul 09, 2004 5:18 pm

Re: XSL-FO specific page count

Post by Radu » Thu Dec 24, 2020 2:49 pm

Hi Hugo,

Maybe you can try to register and ask on the DITA Users List, I do not have an answer to your question and on the users list there are lots of people working with XSL-FO based customizations.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

HVV
Posts: 18
Joined: Fri Dec 02, 2016 4:02 pm

Re: XSL-FO specific page count

Post by HVV » Wed Dec 30, 2020 5:25 pm

Thanks for the tip, Radu!

Post Reply