Reporting

Can I change the margin space of my PDF?

rsimmons
Splunk Employee
Splunk Employee

PDFs waste a lot of margin space that could be better used for actual data. Are there ways, either documented or undocumented, where we can tweak the PDF output to use more real-estate on the pages?

Tags (1)
0 Karma
1 Solution

rsimmons
Splunk Employee
Splunk Employee

This is one of the templates being used for the pdf generation:
/lib/python2.7/site-packages/reportlab/platypus/doctemplate.py

There are leftMargin, rightMargin, topMargin, and bottomMargin variables that are set to one inch by default. If you modify this to a value (the values are in points, where one point is .013836") of your choosing, the Splunk generated PDFs will reflect the change immediately.

View solution in original post

thiluciano
New Member

I have the same problem here using Infoblox Reporting.
Needing to know where to make this setting/change.

0 Karma

rsimmons
Splunk Employee
Splunk Employee

This is one of the templates being used for the pdf generation:
/lib/python2.7/site-packages/reportlab/platypus/doctemplate.py

There are leftMargin, rightMargin, topMargin, and bottomMargin variables that are set to one inch by default. If you modify this to a value (the values are in points, where one point is .013836") of your choosing, the Splunk generated PDFs will reflect the change immediately.

carolinel
Loves-to-Learn

Where in Splunk can I find that template? Is this template specific to my account?  If not, do I have to be an administrator to update that file?

0 Karma

thiluciano
New Member

I have the same problem here using Infoblox Reporting.
Needing to know where to make this setting/change.

0 Karma

andrey2007
Contributor

Is it possible to increase font size in tables when generating pdf similar way?

0 Karma

splunkrocks2014
Communicator

I have the same problems. Where can I change the default values of the margins? Thanks.

0 Karma

puneethgowda
Communicator

same problem here can any one help us with above question

0 Karma
Get Updates on the Splunk Community!

Improve Your Security Posture

Watch NowImprove Your Security PostureCustomers are at the center of everything we do at Splunk and security ...

Maximize the Value from Microsoft Defender with Splunk

 Watch NowJoin Splunk and Sens Consulting for this Security Edition Tech TalkWho should attend:  Security ...

This Week's Community Digest - Splunk Community Happenings [6.27.22]

Get the latest news and updates from the Splunk Community here! News From Splunk Answers ✍️ Splunk Answers is ...