PDF Customization Without Front Matter
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 10
- Joined: Thu Apr 25, 2013 4:09 pm
PDF Customization Without Front Matter
Hi,
I would like to create a new PDF customization for short documents that do not require a cover page and a TOC.
What I had in mind was to use a DITA bookmap with a single chapter, using a slightly modified header and the minitoc as the front page; the rest of the document would be only the body, without any appendices, index or glossary.
I tried to remove the front matter page masters and page sequences from the layout-masters.xsl file, but I got hard-to-trace errors from the FOP processor.
Is there a better way to do this ? Otherwise, which file do I need to update, in addition to the layout-master.xsl file ?
Thanks a lot in advance for your help !
Mathieu
I would like to create a new PDF customization for short documents that do not require a cover page and a TOC.
What I had in mind was to use a DITA bookmap with a single chapter, using a slightly modified header and the minitoc as the front page; the rest of the document would be only the body, without any appendices, index or glossary.
I tried to remove the front matter page masters and page sequences from the layout-masters.xsl file, but I got hard-to-trace errors from the FOP processor.
Is there a better way to do this ? Otherwise, which file do I need to update, in addition to the layout-master.xsl file ?
Thanks a lot in advance for your help !
Mathieu
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: PDF Customization Without Front Matter
Post by sorin_ristache »
Hi Mathieu,
You started off in the right direction, you just need to follow through with all unneeded fo:simple-page-master and fo:page-sequence elements, and most importantly be consistent about it: one simple page master must be removed/commented out together with all page sequences that refer to it. Just do a Find in Files (Ctrl+ALt+H in Oxygen) on directory OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\plugins\org.dita.pdf2 and comment out:
Regards,
Sorin
You started off in the right direction, you just need to follow through with all unneeded fo:simple-page-master and fo:page-sequence elements, and most importantly be consistent about it: one simple page master must be removed/commented out together with all page sequences that refer to it. Just do a Find in Files (Ctrl+ALt+H in Oxygen) on directory OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\plugins\org.dita.pdf2 and comment out:
- all fo:simple-page-master elements except for the ones with a name like body-*
- all calls to the "generate-page-sequence-master" template (as in <xsl:call-template name="generate-page-sequence-master">) except for the ones with a master-name parameter like body-* and ditamap-body-*
- all fo:page-sequence elements except for the ones with a master-reference attribute like body- and the ones with a master-reference attribute as a variable name, like {$page-sequence-reference}
Regards,
Sorin
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