PdfDefault.html 7.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 2016"><meta name="DC.rights.owner" content="(C) Copyright 2016"><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.Relation" scheme="URI" content="../dev_ref/DITA-OTArchitecture.html"><meta name="DC.Format" content="XHTML"><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 2.3</a></li><li><a href="../release-notes/index.html">Release Notes</a></li><li><a href="../getting-started/index.html">Getting Started</a></li><li><a href="../user-guide/index.html">User Guide</a></li><li><a href="../parameters/index.html">Parameter Reference</a></li><li><a href="../dev_ref/index.html">Developer Reference</a><ul><li><a href="../dev_ref/DITA-OTArchitecture.html">DITA-OT Architecture</a><ul><li><a href="../dev_ref/processing-structure.html">Processing structure</a></li><li><a href="../dev_ref/processing-pipeline-modules.html">Processing modules</a></li><li><a href="../dev_ref/processing-order.html">Processing order</a></li><li><a href="../dev_ref/DITA-OTPreprocess.html">Pre-processing modules</a></li><li><a href="../dev_ref/XhtmlWithNavigation.html">HTML-based processing modules</a></li><li class="active"><a href="../dev_ref/PdfDefault.html">PDF processing modules</a></li><li><a href="../dev_ref/OdtDefault.html">Open Document Format processing modules</a></li></ul></li><li><a href="../dev_ref/extending-the-ot.html">Extending the DITA-OT</a></li><li><a href="../dev_ref/plugin-creating.html">Creating plug-ins</a></li><li><a href="../dev_ref/plugin-extension-points.html">Extension points</a></li><li><a href="../dev_ref/pdf-customization.html">Customizing PDF output</a></li><li><a href="../dev_ref/migration.html">Migrating customizations</a></li></ul></li><li><a href="../user-guide/dita-and-dita-ot-resources.html">DITA 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"><div class="familylinks"><div class="parentlink"><strong>Parent topic:</strong> <a class="link" href="../dev_ref/DITA-OTArchitecture.html" title="The 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.">Architecture of the DITA Open Toolkit</a></div></div></nav></article></main></body></html>