Adding Margins in PDF Export but Not in Jaspersoft Report

Posted on by By Satya Gopi, in Jaspersoft | 0

Learn how to add Margins in PDF exports without adding them in Jaspersoft Reports

Prerequisites: Jasper Studio 6.4 version
Database: Foodmart

We have come with one requirement like they need to show margins only for PDF Export but not in Jasper Studio HTML.To achieve the requirement please follow the below steps

Make data easy with Helical Insight.
Helical Insight is the world’s best open source business intelligence tool.

Get your 30 Days Trail Version

Step1: Create a sample Report with no margins within it.

Adding Margins in PDF

Step2: Add the below property in source file to exclude margins from HTML view, then automatically margins will appear in PDF export and for some other exports as well.

<property name="net.sf.jasperreports.export.ignore.page.margins" value="true"/>

Adding HTML tag in the source file

Output:

Now check the PDF Export the margins will appear.

Margins in PDF Export

logo

Best Open Source Business Intelligence Software Helical Insight is Here

logo

A Business Intelligence Framework

In case if you have any queries please get us at support@helicaltech.com

Thank You
Satya Gopi
Helical IT Solutions Pvt Ltd

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments