Skip to content

Output Trimmed in PDF Export

When report elements, such as crosstabs or tables, exceed the standard page width (for example, if a table is centered but its columns are too wide, pushing it off the left margin, or if a crosstab element expands past the right margin), the content can fall outside the page boundaries.

To solve this, the PDF export can be configured by making each page a variable size based on the actual, oversized dimensions of its content.

Use the following export configuration property to avoid the unwanted default PDF page trimmings:

Output Trimmed on The Left Side

Configuration File

WEB-INF/classes/jasperreports.properties

Property

Description

net.sf.jasperreports.export.pdf.size.page.to.content

Ensures that the content within a report fits correctly onto the exported PDF page. Set the value to true to activate the fix.