pdf-transform.html 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <!DOCTYPE html
  2. SYSTEM "about:legacy-compat">
  3. <html lang="en-us"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="UTF-8"><meta name="copyright" content="(C) Copyright 2019"><meta name="DC.rights.owner" content="(C) Copyright 2019"><meta name="DC.type" content="concept"><meta name="description" content="The PDF (formerly known as PDF2) transformation process runs the pre-processing routine and follows it by a series of additional targets. These steps work together to create a merged set of content, convert the merged content to XSL-FO, and then format the XSL-FO file to PDF."><meta name="DC.subject" content="DITAVAL, PDF, Antenna House, transform.fo2pdf, topic.fo, Apache FOP, preprocessing, targets, XSLT, RenderX, XEP, index, stage1.xml, pipelines, stage1a.xml, stage2.fo, stage3.fo"><meta name="keywords" content="DITAVAL, PDF, Antenna House, transform.fo2pdf, topic.fo, Apache FOP, preprocessing, targets, XSLT, RenderX, XEP, index, stage1.xml, pipelines, stage1a.xml, stage2.fo, stage3.fo"><meta name="DC.relation" scheme="URI" content="../reference/architecture.html"><meta name="DC.relation" scheme="URI" content="../reference/pdf-transformation-history.html"><meta name="DC.format" content="HTML5"><meta name="DC.identifier" content="pdfdefault"><meta name="DC.language" content="en-US"><link rel="stylesheet" type="text/css" href="../css/commonltr.css"><link rel="stylesheet" type="text/css" href="../css/dita-ot-doc.css"><title>PDF processing modules</title></head><body id="pdfdefault"><header role="banner"><div class="header">
  4. <p>DITA Open Toolkit</p>
  5. <hr>
  6. </div></header><nav role="toc"><ul><li><a href="../index.html">DITA Open Toolkit 3.3</a></li><li><a href="../release-notes/index.html">Release Notes</a></li><li><a href="../topics/installing-client.html">Installing DITA-OT</a></li><li><a href="../topics/alternative-input-formats.html">Authoring formats</a></li><li><a href="../topics/building-output.html">Building output</a></li><li><a href="../parameters/index.html">Setting parameters</a></li><li><a href="../topics/customizing.html">Customizing DITA-OT</a></li><li><a href="../topics/troubleshooting-overview.html">Troubleshooting</a></li><li><a href="../reference/index.html">Reference</a><ul><li><a href="../reference/architecture.html">DITA-OT architecture</a><ul><li><a href="../reference/processing-structure.html">Processing structure</a></li><li><a href="../reference/map-first-preprocessing.html">Map-first preprocessing</a></li><li><a href="../reference/processing-pipeline-modules.html">Processing modules</a></li><li><a href="../reference/processing-order.html">Processing order</a></li><li><a href="../reference/preprocessing.html">Pre-processing modules</a></li><li><a href="../reference/XhtmlWithNavigation.html">HTML-based processing modules</a></li><li class="active"><a href="../reference/pdf-transform.html">PDF processing modules</a><ul><li><a href="../reference/pdf-transformation-history.html">History of the PDF transformation</a></li></ul></li></ul></li><li><a href="../reference/DITA_spec-support.html">DITA specification support</a></li><li><a href="../reference/license.html">License</a></li></ul></li><li><a href="../topics/dita-and-dita-ot-resources.html">Resources</a></li></ul></nav><main role="main"><article role="article" aria-labelledby="ariaid-title1">
  7. <h1 class="title topictitle1" id="ariaid-title1">PDF processing modules</h1>
  8. <div class="body conbody"><p class="shortdesc">The <span class="keyword option">PDF</span> (formerly known as <span class="keyword option">PDF2</span>) transformation process runs the
  9. pre-processing routine and follows it by a series of additional targets. These steps work together to create a
  10. merged set of content, convert the merged content to XSL-FO, and then format the XSL-FO file to PDF.</p>
  11. <section class="section">
  12. <p class="p">The PDF process includes many Ant targets. During a typical conversion from map to PDF, the following targets
  13. are most significant.</p>
  14. <dl class="dl">
  15. <dt class="dt dlterm"><code class="ph codeph">map2pdf2</code></dt>
  16. <dd class="dd">Creates a merged file by calling a common Java merge module. It then calls the
  17. <code class="ph codeph">publish.map.pdf</code> target to do the remainder of the work.</dd>
  18. <dt class="dt dlterm"><code class="ph codeph">publish.map.pdf</code></dt>
  19. <dd class="dd">Performs some initialization and then calls the <code class="ph codeph">transform.topic2pdf</code> target to do the
  20. remainder of processing.</dd>
  21. <dt class="dt dlterm"><code class="ph codeph">transform.topic2pdf</code></dt>
  22. <dd class="dd">Converts the merged file to XSL-FO, generates the PDF, and deletes the <span class="ph filepath">topic.fo</span> file,
  23. unless instructed to keep it.</dd>
  24. </dl>
  25. <p class="p">The <code class="ph codeph">transform.topic2pdf</code> target uses the following targets to perform those tasks:</p>
  26. <dl class="dl">
  27. <dt class="dt dlterm"><code class="ph codeph">transform.topic2fo</code></dt>
  28. <dd class="dd">Convert the merged file to an XSL-FO file. This process is composed of several sub-targets. </dd>
  29. <dt class="dt dlterm"><code class="ph codeph">transform.topic2fo.index</code></dt>
  30. <dd class="dd">Runs a Java process to set up index processing, based on the document language. This step generates the
  31. file <span class="ph filepath">stage1.xml</span> in the temporary processing directory. </dd>
  32. <dt class="dt dlterm"><code class="ph codeph">transform.topic2fo.flagging</code></dt>
  33. <dd class="dd">Sets up preprocessing for flagging based on a DITAVAL file. This step generates the file
  34. <span class="ph filepath">stage1a.xml</span> in the temporary processing directory.</dd>
  35. <dt class="dt dlterm"><code class="ph codeph">transform.topic2fo.main</code></dt>
  36. <dd class="dd">Does the bulk of the conversion from DITA to XSL-FO. It runs the XSLT-based process that creates
  37. <span class="ph filepath">stage2.fo</span> in the temporary processing directory</dd>
  38. <dt class="dt dlterm"><code class="ph codeph">transform.topic2fo.i18n</code></dt>
  39. <dd class="dd">Does additional localization processing on the FO file; it runs a Java process that converts
  40. <span class="ph filepath">stage2.fo</span> into <span class="ph filepath">stage3.fo</span>, followed by an XSLT process that
  41. converts <span class="ph filepath">stage3.fo</span> into <span class="ph filepath">topic.fo</span>.</dd>
  42. <dt class="dt dlterm"><code class="ph codeph">transform.fo2pdf</code></dt>
  43. <dd class="dd">Converts the <span class="ph filepath">topic.fo</span> file into PDF using the specified FO processor (Antenna House,
  44. XEP, or Apache FOP).</dd>
  45. <dt class="dt dlterm"><code class="ph codeph">delete.fo2pdf.topic.fo</code></dt>
  46. <dd class="dd">Deletes the <span class="ph filepath">topic.fo</span> file, unless otherwise specified by setting an Ant property or
  47. command-line option.</dd>
  48. </dl>
  49. </section>
  50. </div>
  51. <nav role="navigation" class="related-links"><ul class="ullinks"><li class="link ulchildlink"><strong><a href="../reference/pdf-transformation-history.html">History of the PDF transformation</a></strong><br>The DITA Open Toolkit PDF transformation was originally based on a third-party contribution by Idiom Technologies, and is commonly known as the “pdf2” plug-in.</li></ul><div class="familylinks"><div class="parentlink"><strong>Parent topic:</strong> <a class="link" href="../reference/architecture.html" title="DITA Open Toolkit is an open-source implementation of the OASIS specification for the Darwin Information Typing Architecture. The toolkit uses Ant, XSLT, and Java to transform DITA content (maps and topics) into different deliverable formats.">DITA Open Toolkit Architecture</a></div></div></nav></article></main></body></html>