Using Drupal and DITA OT to Create a PDF File
This post shows you how to use Drupal and DITA OpenToolkit to create a PDF file. It uses Views in Drupal and the REST UI to create a json file that will be used to create a bookmap and markdown files. These files will be used by Open Toolkit to create a PDF file. Prerequisites: Drupal, DITA OT, Python Make sure that the following modules are installed in Drupal: For DITA Open Toolkit, you can use markdown files instead of DITA files. For this post we will use markdown files, which are much easier to work with. DITA files require that you are familiar with fairly complex tagging. Markdown is much easier to use. See the following website for a markdown cheatsheet: https://www.markdownguide.org/cheat-sheet/ Creating Dita Bookmap and Markdown Content Types We will create a Dita bookmap and two markdown files. First, let's make two new Content Types in Drupal. For the first content type, perform the following steps: Select Structure > Content Types > ...