pdf-transform.dita 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
  3. <!-- This file is part of the DITA Open Toolkit project. See the accompanying LICENSE file for applicable license. -->
  4. <concept id="pdfdefault" xml:lang="en-US">
  5. <title>PDF processing modules</title>
  6. <shortdesc>The <option>PDF</option> (formerly known as <option>PDF2</option>) transformation process runs the
  7. pre-processing routine and follows it by a series of additional targets. These steps work together to create a
  8. merged set of content, convert the merged content to XSL-FO, and then format the XSL-FO file to PDF.</shortdesc>
  9. <conbody>
  10. <section>
  11. <p>The PDF process includes many Ant targets. During a typical conversion from map to PDF, the following targets
  12. are most significant.</p>
  13. <dl>
  14. <dlentry>
  15. <dt><codeph>map2pdf2</codeph></dt>
  16. <dd>Creates a merged file by calling a common Java merge module. It then calls the
  17. <codeph>publish.map.pdf</codeph> target to do the remainder of the work.</dd>
  18. </dlentry>
  19. <dlentry>
  20. <dt><codeph>publish.map.pdf</codeph></dt>
  21. <dd>Performs some initialization and then calls the <codeph>transform.topic2pdf</codeph> target to do the
  22. remainder of processing.</dd>
  23. </dlentry>
  24. <dlentry>
  25. <dt><codeph>transform.topic2pdf</codeph></dt>
  26. <dd>Converts the merged file to XSL-FO, generates the PDF, and deletes the <filepath>topic.fo</filepath> file,
  27. unless instructed to keep it.</dd>
  28. </dlentry>
  29. </dl>
  30. <p>The <codeph>transform.topic2pdf</codeph> target uses the following targets to perform those tasks:</p>
  31. <dl>
  32. <dlentry>
  33. <dt><codeph>transform.topic2fo</codeph></dt>
  34. <dd>Convert the merged file to an XSL-FO file. This process is composed of several sub-targets. </dd>
  35. </dlentry>
  36. <!-- Begin sub-targets -->
  37. <dlentry>
  38. <dt><codeph>transform.topic2fo.index</codeph></dt>
  39. <dd>Runs a Java process to set up index processing, based on the document language. This step generates the
  40. file <filepath>stage1.xml</filepath> in the temporary processing directory. </dd>
  41. </dlentry>
  42. <dlentry>
  43. <dt><codeph>transform.topic2fo.flagging</codeph></dt>
  44. <dd>Sets up preprocessing for flagging based on a DITAVAL file. This step generates the file
  45. <filepath>stage1a.xml</filepath> in the temporary processing directory.</dd>
  46. </dlentry>
  47. <dlentry>
  48. <dt><codeph>transform.topic2fo.main</codeph></dt>
  49. <dd>Does the bulk of the conversion from DITA to XSL-FO. It runs the XSLT-based process that creates
  50. <filepath>stage2.fo</filepath> in the temporary processing directory</dd>
  51. </dlentry>
  52. <dlentry>
  53. <dt><codeph>transform.topic2fo.i18n</codeph></dt>
  54. <dd>Does additional localization processing on the FO file; it runs a Java process that converts
  55. <filepath>stage2.fo</filepath> into <filepath>stage3.fo</filepath>, followed by an XSLT process that
  56. converts <filepath>stage3.fo</filepath> into <filepath>topic.fo</filepath>.</dd>
  57. </dlentry>
  58. <!-- End sub-targets -->
  59. <dlentry>
  60. <dt><codeph>transform.fo2pdf</codeph></dt>
  61. <dd>Converts the <filepath>topic.fo</filepath> file into PDF using the specified FO processor (Antenna House,
  62. XEP, or Apache FOP).</dd>
  63. </dlentry>
  64. <dlentry>
  65. <dt><codeph>delete.fo2pdf.topic.fo</codeph></dt>
  66. <dd>Deletes the <filepath>topic.fo</filepath> file, unless otherwise specified by setting an Ant property or
  67. command-line option.</dd>
  68. </dlentry>
  69. </dl>
  70. </section>
  71. </conbody>
  72. </concept>