Develop a PDF Generator Template Locally
You can develop a Heretto PDF Generator template on Windows , macOS, and Linux.
- On your workstation, install Prince with the default settings, https://www.princexml.com/doc/installing/.
- If needed, learn CSS and HTML basics. For more information, you can refer to the following resources:
- If needed, learn about the CSS features supported by the Heretto PDF Generator. See the Prince CSS Reference.
- Ensure that you are a Heretto CCMS Administrator.
In Heretto CCMS, do the following:
Locally, develop a template by doing the following:
Locally, preview the template by doing the following:
The locally-generated PDFs may include a Prince watermark (top-right corner).
- Transfer the local template to Heretto CCMS. See Move a Local Heretto PDF Generator template to Heretto CCMS.
Move a Local Heretto PDF Generator template to Heretto CCMS
You move a local Heretto PDF Generator template to Heretto CCMS to make the template available in the publishing interface.
- Develop a Heretto PDF Generator template locally. See Develop a PDF Generator Template Locally.
- From the testing.css file that you developed locally, copy the CSS code.
- In the top-left corner, click the Main Menu
and go to PDF Generator.
- Do any of the following:
- Under the Name column, click the scenario that you want to update.
- Create a Heretto PDF Generator scenario. See Create a PDF Generator Scenario.
- In the left pane, in the CSS tab, paste the CSS code that you copied from the testing.css file.
- Click Save Scenario.
- Publish a map by using the template.
Add the Prince Path to the Windows System Environment Variables
You add the Prince Path to the system environment variables to easily run Prince from the Windows Command Prompt.
- On your Windows workstation, install Prince with the default settings, https://www.princexml.com/doc/installing/.
Important: This procedure is only applicable for Windows. You do not need to perform this procedure on macOS or Linux.
The following example shows that you can enter prince command to run Prince instead of the longish "C:\Program Files (x86)\Prince\engine\bin\" command.