Configure and Manage PDF Generator Publishing Scenarios
Create a PDF Generator Scenario
Users assigned the Administrator role in Heretto CCMS can create and manage PDF Generator publishing scenarios in the CCMS. Any user with publishing permissions can use those publishing scenarios to generate output.
The scenario is now available in the publishing interface. Any user with publishing permissions can use it to publish content.
Enable or Disable a PDF Generator Scenario
Administrators can show or hide a publishing scenario in the publishing interface.
- In the top-left corner, click the Main Menu
and go to PDF Generator.
- Hover over a publishing scenario and click More actions
.
- From the context menu, select an action:
- To disable a publishing scenario, select Disable.
Figure 2. Disabled publishing scenarios are not visible in the publishing interface - To enable a disabled publishing scenario, select Enable.
Figure 3. Enabled publishing scenarios are visible in the publishing interface
- To disable a publishing scenario, select Disable.
Delete a PDF Generator Scenario
Administrators can delete publishing scenarios that are no longer needed.
- In the top-left corner, click the Main Menu
and go to PDF Generator.
- Hover over a publishing scenario and click More actions
.
- From the context menu, select Delete.
- If prompted, confirm the deletion.
Duplicate a PDF Generator Scenario
Administrators can duplicate publishing scenarios.
Enable Code Syntax Highlighting in PDF Generator
You can enable code syntax highlighting in PDF Generator publishing scenarios. Heretto CCMS uses the highlight.js syntax highlighting library, version 11.4.0. Once syntax highlighting is enabled in a PDF Generator scenario, when you publish with that scenario, code in code block elements is automatically detected and highlighted.
To complete this procedure, you must be assigned the Administrator role in Heretto CCMS.
Code syntax is not highlighted when you preview content in the publishing or Administration interface. Code is highlighted when you actually publish content.
Include Metadata in an Existing PDF Generator Scenario
Set up a PDF Generator scenario to include CCMS metadata in normalized DITA. This metadata can be used by advanced publishing scenario developers for custom XSLT or transformation extensions.
The PDF Generator uses the Prince formatter (formerly Prince XML) as its publishing engine, which processes HTML and CSS, but not normalized DITA. Once metadata is included in normalized DITA, advanced publishing scenario developers can create XSLT rules to output the metadata as HTML elements, like <meta> tags or visible content.
To complete this procedure, you must be assigned the Administrator role in Heretto CCMS.
This procedure explains how to include metadata in an existing PDF Generator scenario. To learn how to do it in a new scenario, see Create a PDF Generator Scenario.
Set up a publishing scenario to include metadata
Verify that metadata is included in normalized DITA