Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

How modify the HTML in a python script to force page breaks in a PDF rendering of a dashboard?

$
0
0
We have a need to force certain panels of a dashboard to start on new pages. Since some of the panels will have variable dimensions, we don't want a kludge to space things around - we are hoping to be able to use some simple HTML in the XML to do this. Searches show that the python scripts involved in the PDF rendering appear to recognize and process HTML styles: if hasattr(first,'pageBreakBefore') and first.pageBreakBefore == 1: first._skipMeNextTime = 1 first.insert(0, PageBreak()) return I have tried adding a Paragraph HTML tag inside a dummy row/panel as below, and it does impact the display and print aspects of the dashboard, but no luck on changing the PDF generation. Any suggestions on how to get this working?

Page break before this line.


Viewing all articles
Browse latest Browse all 47296

Trending Articles