Page 1 of 1

XSL-FO specific page count

Posted: Wed Dec 23, 2020 12:06 am
by HVV
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

Re: XSL-FO specific page count

Posted: Thu Dec 24, 2020 2:49 pm
by Radu
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

Re: XSL-FO specific page count

Posted: Wed Dec 30, 2020 5:25 pm
by HVV
Thanks for the tip, Radu!

Re: XSL-FO specific page count

Posted: Thu Feb 23, 2023 11:00 am
by xephon