Customizing PDF output

DITA Open Toolkit

Customizing PDF output

You can build a DITA-OT plug-in that contains a customized PDF transformation.

About this task

This topic demonstrates the process of building a plug-in (com.example.print-pdf) that creates a new transformation type: print-pdf. The print-pdf transformation has the following characteristics:
  • Uses A4 paper
  • Renders figures with a title at the top and a description at the bottom
  • Use em dashes as the symbols for unordered lists

Procedure

Results

The new plug-in directory has the following layout and files:

com.example.print-pdf/
  cfg/
    common/
      vars/
        en.xml
    fo/
      attrs/
        custom.xsl
      xsl/
        custom.xsl
    catalog.xml
  integrator.xml
  plugin.xml

What to do next

Run the integration process to install the plug-in and make the print-pdf transformation available.