Syntext Forums - Serna Enterprise XML Editor, Serna Free XML Editor
(#1 (permalink))
Old
Junior Member
 
Posts: 1
Join Date: Mar 2009
Default PDF Generation Help - 08-06-2008, 03:35 AM

Hi,

I'm new to DITA and serna. I've downloaded a trial version and created a small
dita test document from which I wanted to generate a pdf. All of this worked
wonderfully, however I want to add my own header and footer to the generated
pdf and cannot find out how to achieve this. I've looked in many forums, faqs
and tutorials, but without avail. Maybe someone on this list can give me hint,
how I can achieve this. Thanks!

Reply With Quote
(#2 (permalink))
Old
Junior Member
 
Posts: 22
Join Date: Mar 2009
Default 04-09-2009, 05:38 PM

The original request is old, but others now reading this thread might still be interested in the issue.

PDF output for DITA is done using the DITA Open Toolkit. In the current externally available version of the DITA OT (from http://dita-ot.sourceforge.net), the default integrated PDF process uses the so-called Idiom or pdf2 transform to generate FO intermediate files that are then processed by FOP (default) or other user-integrated tools such as RenderX XEP or Antenna House.

The current pdf2 transforms use a configuration interface where you can define your own values for the running header and footer on different parts of the output (you can differentiate what shows in the preface vs the appendix, for example). The general instructions are in the readme.txt file in the demo/fo/Customization directory.

For a quick test, copy fo/cfg/common/vars/en-US.xml into fo/Customization/common/vars. Then in that folder, modify the product string (set currently as OpenTopic, for example) and save it. For example, you might use "MyCompany" instead of "OpenTopic":
<!-- Product name to be placed inside headers etc. -->
<variable id="Product Name">MyCompany</variable>

To test it, run this command:
C:\DITA-OT1.4.3>ant -f samples\ant_sample\sample_pdf.xml

Your new value should show in the upper left portion of the header for the resulting PDF (note that this output ends up in the samples folder, not the outer level out folder).

--Don Day
IBM Architect, Lightweight Publishing Solutions
Reply With Quote
Reply

Bookmarks

Tags
custom logo, dita ot, dita ot customization, pdf

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.1
vBulletin Skin developed by: vBStyles.com