PDF output pipeline
The PDF process (formerly known as PDF2) runs the preprocess
routine, followed by a series of additional targets. These steps work
together to create a merged set of content, convert that to XSL-FO,
and then format the FO file to PDF.
The PDF process adds many new Ant targets. During a typical conversion from map to PDF, the following targets are most significant.
map2pdf2creates a merged file by calling a common Java merge module. It then callspublish.map.pdfto do the remainder of the work.- The
publish.map.pdftarget does some initialization, and then callstransform.topic2pdfto do the remainder of processing. That target runs all of the following steps.transform.topic2fois used to convert the merged file to an XSL-FO file. This process is composed of several Ant targets.transform.topic2fo.indexruns a Java process to set up index processing, based on the document language. This step generates the filestage1.xmlin the temporary processing directory.transform.topic2fo.flaggingsets up preprocessing for flagging based on a DITAVAL file. This step generates the filestage1a.xmlin the temporary processing directory.transform.topic2fo.maindoes the bulk of the conversion from DITA to XSL-FO. It runs the XSLT based process that createsstage2.foin the temporary processing directory.transform.topic2fo.i18ndoes additional localization processing on the FO file; it runs a Java process that convertsstage2.fointostage3.fo, followed by an XSLT process that convertsstage3.fointotopic.fo.
transform.fo2pdfconverts thetopic.fofile into PDF using the available FO processor (Antenna House, XEP, or Apache FOP).delete.fo2pdf.topic.fodeletes thetopic.fofile, unless otherwise specified by setting an Ant property or command line option.