Page Orientation, Size, Margins
In Heretto PDF Generator, you can control the page size, page orientation, and margin size of your document. 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 change the styling both in the PDF Generator publishing scenario and by assigning outputclass attributes to maps and topics.
Resource location: | @import url("https://jorsek.github.io/pdfgen.github.io/styles1.1/modules/layout/orientation_size.css"); |
Change Page Size
You can change the page size in a PDF Generator publishing scenario. The default is A4.
Change Page Orientation
You can change the page orientation in a PDF Generator publishing scenario. The default is portrait.
Outputclass Attributes for Page Orientation, Size, Margins
You can assign outputclass attributes to root maps or root topics to set page orientation, size, and margins of their elements.
You can learn how to assign outputclass attributes here: Outputclass Attributes for PDF Generator.
With ooutputclass attributes, you can change the orientation of individual maps or topics, regardless of what is defined in the publishing scenario.
- Insert a large table
- Insert a large image
- Reduce the number of pages
Outputclass Attribute |
Description |
Target DITA Element |
---|---|---|
landscape_small | A4 landscape body page size with small margins |
map, topic, element inside a topic |
landscape | A4 landscape body page size with regular margins |
map, topic, element inside a topic |
portrait [default] | A4 portrait body page size with regular margins |
map, topic, element inside a topic |
portrait_large | A4 portrait body page size with large margins |
map, topic, element inside a topic |
portrait_small | A4 portrait body page size with small margins |
map, topic, element inside a topic |
toc_landscape_large | A4 landscape TOC page size with large margins |
map |
toc_landscape_small | A4 landscape TOC page size with small margins |
map |
toc_landscape | A4 landscape TOC page size with regular margins |
map |
toc_portrait [default] | A4 portrait TOC page size with regular margins |
map |
toc_portrait_large | A4 portrait TOC page size with large margins |
map |
toc_portrait_small | A4 portrait TOC page size with small margins |
map |