Cover Page
In Heretto PDF Generator, you can create front and back cover pages for your publishing scenario. Follow information provided in this section to build PDF Generator publishing scenarios based on Gray and Color templates. For more information about the templates, see Gray and Color Templates.
Resource location: | @import url("https://jorsek.github.io/pdfgen.github.io/styles1.1/modules/layout/cover_responsive.css"); |
@import url("https://jorsek.github.io/pdfgen.github.io/styles1.1/modules/layout/cover_generic.html"); |
You can examine the template code and apply required modifications to change the cover page layout.
Default behavior:
The Cover Page module creates only a front cover page.
The cover page layout is not affected by the DITA outputclass attributes.
The front cover page is added in the A4 portrait mode. To learn how to edit page size, see Page Orientation, Size, Margins.
Add a Custom Logo
Add your logo to the cover page of the Gray and Color templates. Follow information provided in this section to build PDF Generator publishing scenarios based on Gray and Color templates. For more information about the templates, see Gray and Color Templates.
You can host your logo on an external server, upload it to Heretto CCMS, or use the Base64 format. For more information, see Implementing Graphics.
Your logo image appears in the bottom-right corner of the cover page.
Center the Logo
Center your custom logo on the PDF cover page of the Gray and Color templates. Follow information provided in this section to build PDF Generator publishing scenarios based on Gray and Color templates. For more information about the templates, see Gray and Color Templates.
Your logo is centered on the cover page.
Style the Cover Page Title Text
You can change the font style of the title displayed on PDF cover pages. Follow information provided in this section to build PDF Generator publishing scenarios based on Gray and Color templates. For more information about the templates, see Gray and Color Templates.
The title styling on your cover page is changed.
Change the Primary Background Color of the Cover Page
You can change the primary background color of your PDF cover page. Follow information provided in this section to build PDF Generator publishing scenarios based on Gray and Color templates. For more information about the templates, see Gray and Color Templates.
Primary color of the cover page is replaced with a dark orange color.
Change the Secondary Background Color of the Cover Page
You can change the secondary background color of your PDF cover page. Follow information provided in this section to build PDF Generator publishing scenarios based on Gray and Color templates. For more information about the templates, see Gray and Color Templates.
The secondary color of the cover page is replaced with a sky blue color.
Add a Border to the Cover Page
You can add a color border to the PDF cover page. Follow information provided in this section to build PDF Generator publishing scenarios based on Gray and Color templates. For more information about the templates, see Gray and Color Templates.
A teal stripe is added to the PDF cover page.
Add Topicmeta Metadata to the Cover Page
You can display metadata of a map on the PDF cover page. This works for metadata added in the topicmeta element in both maps and bookmaps. Follow information provided in this section to build PDF Generator publishing scenarios based on Gray and Color templates. For more information about the templates, see Gray and Color Templates.
To add this advanced customization, you need to add specific structures to your DITA content and modify the HTML, CSS, and XSLT code of the publishing scenario.
This procedure involves modifications to XSLT code. Such modifications are considered advanced configurations and require a solid understanding of XSLT and scripting. Without the appropriate expertise, there is a risk of accidentally introducing errors to XSLT code. If you or your team lack experience with XSLT, consult your Customer Success Manager to explore available options.
Add metadata to a map
Edit the PDF Generator scenario
DITA metadata is displayed on the cover page. Both the metadata and the map title are styled according to the applied CSS code.
Visit the W3Schools website to learn how to reference paths in XSLT.
Add Bookmeta Metadata to the Cover Page
You can display bookmeta metadata on the PDF cover page. This works only for bookmaps. Follow information provided in this section to build PDF Generator publishing scenarios based on Gray and Color templates. For more information about the templates, see Gray and Color Templates.
This procedure involves modifications to XSLT code. Such modifications are considered advanced configurations and require a solid understanding of XSLT and scripting. Without the appropriate expertise, there is a risk of accidentally introducing errors to XSLT code. If you or your team lack experience with XSLT, consult your Customer Success Manager to explore available options.
To add this advanced customization, you need to add specific structures to your DITA content and modify the HTML, CSS, and XSLT code of the publishing scenario.
Add bookmeta metadata
Edit the PDF Generator scenario
DITA bookmeta metadata is displayed on the cover page. Both the metadata and the map are styled according to the applied CSS code.
Add a Back Cover
Learn how to add an additional page as a back cover to your PDFs. Follow information provided in this section to build PDF Generator publishing scenarios based on Gray and Color templates. For more information about the templates, see Gray and Color Templates.
This procedure involves modifications to XSLT code. Such modifications are considered advanced configurations and require a solid understanding of XSLT and scripting. Without the appropriate expertise, there is a risk of accidentally introducing errors to XSLT code. If you or your team lack experience with XSLT, consult your Customer Success Manager to explore available options.
To add this advanced customization, you need to add specific structures to your DITA content and modify the HTML, CSS, and XSLT code of the publishing scenario.
An additional page is added at the end of a PDF document.