DITA - PDF Output Customization questions
Oxygen general issues.
-
- Posts: 2
- Joined: Thu Feb 27, 2014 6:11 pm
DITA - PDF Output Customization questions
Hi guys. Can someone please help me customize a pdf output? I'm trying to:
1. include a left-aligned company logo in the footer, visible on all pages excluding front page and TOC section.
2. include a "Version date: <output date>" text just under the title on the main page, small size, grey color. (<output date>) to be automatically filled each time I'm building an output.
Can you please tell me what files need to be modified and how?
Thank you so much for the best dita editing tool out there!
1. include a left-aligned company logo in the footer, visible on all pages excluding front page and TOC section.
2. include a "Version date: <output date>" text just under the title on the main page, small size, grey color. (<output date>) to be automatically filled each time I'm building an output.
Can you please tell me what files need to be modified and how?
Thank you so much for the best dita editing tool out there!

-
- Posts: 9445
- Joined: Fri Jul 09, 2004 5:18 pm
Re: DITA - PDF Output Customization questions
Salut Dan,
Thanks for the kind words.
I will try to give you some hints for each question below:
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/plugins/org.dita.pdf2/cfg/common/vars/en.xml
it contains some variables like:
Such variables are used in the XSLT:
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/plugins/org.dita.pdf2/xsl/fo/static-content.xsl
in XSLT templates like:
So you could try to modify their content.
As a side note usually PDF customizations are not made by directly modifying the XSLT code in the DITA OT folder:
http://www.oxygenxml.com/doc/ug-oxygen/ ... ation.html
OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\plugins\org.dita.pdf2\xsl\fo\front-matter.xsl
there is an XSLT template called:
which should probably be modified to add some XSLT code which presents the current date under the part where the map title is presented.
The DITA Users List is also a very good place where to register and ask customization questions.
There is also a very good book about PDF customization by Leigh White:
http://xmlpress.net/publications/dita/dita-for-print/
Regards,
Radu
Thanks for the kind words.
I will try to give you some hints for each question below:
If you look in this configuration file (for English):1. include a left-aligned company logo in the footer, visible on all pages excluding front page and TOC section.
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/plugins/org.dita.pdf2/cfg/common/vars/en.xml
it contains some variables like:
Code: Select all
<!-- The footer that appears on odd-numbered pages. -->
<variable id="Body odd footer"/>
<!-- The footer that appears on even-numbered pages. -->
<variable id="Body even footer"/>
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/plugins/org.dita.pdf2/xsl/fo/static-content.xsl
in XSLT templates like:
Code: Select all
<xsl:template name="insertBodyEvenFooter">
.....
As a side note usually PDF customizations are not made by directly modifying the XSLT code in the DITA OT folder:
http://www.oxygenxml.com/doc/ug-oxygen/ ... ation.html
In the XSL:2. include a "Version date: <output date>" text just under the title on the main page, small size, grey color. (<output date>) to be automatically filled each time I'm building an output.
OXYGEN_INSTALL_DIR\frameworks\dita\DITA-OT\plugins\org.dita.pdf2\xsl\fo\front-matter.xsl
there is an XSLT template called:
Code: Select all
<xsl:template name="createFrontMatter_1.0">
..........
The DITA Users List is also a very good place where to register and ask customization questions.
There is also a very good book about PDF customization by Leigh White:
http://xmlpress.net/publications/dita/dita-for-print/
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
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