XSL-FO specific page count
Here should go questions about transforming XML with XSLT and FOP.
XSL-FO specific page count
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
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
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
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
<oXygen/> XML Editor
http://www.oxygenxml.com
Re: XSL-FO specific page count
I have the same question and posted it here: stackoverflow.com/questions/75542007/enforce-a-page-count-that-is-divisible-by-four
stefan-jung.org – Your DITA/DITA-OT XML consultant
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service