Page margins
Control the space between the page edges and content with customizable margins
The margin
parameter allows you to specify the spacing between the page edges and the content of your rendered document.
Overview
When generating PDFs or other documents, controlling the margins ensures proper spacing around your content. The margin
parameter lets you define precise margins for all four sides of the document with support for different measurement units.
Parameter details
Specifies the spacing between the page edges and the content of your rendered document
Usage
Behavior
The margin parameter creates empty space around the content of your document. Each margin value must be a non-negative number (minimum: 0).
Use cases
This parameter is particularly useful for:
-
Print-ready documents: Set appropriate margins for documents intended for printing.
-
Professional reports: Create polished documents with consistent spacing around content.
-
Custom layouts: Adjust margins to accommodate headers, footers, or binding space.
-
Mobile-friendly PDFs: Optimize reading experience on smaller screens with appropriate margins.