<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Remove Chart in PDF report in Splunk 5 in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Remove-Chart-in-PDF-report-in-Splunk-5/m-p/26497#M477</link>
    <description>&lt;P&gt;Hi, if still applicable on december 2014&lt;/P&gt;

&lt;P&gt;Can you post your search request please ?&lt;BR /&gt;
Olivier.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Dec 2014 08:51:17 GMT</pubDate>
    <dc:creator>o_calmels</dc:creator>
    <dc:date>2014-12-22T08:51:17Z</dc:date>
    <item>
      <title>Remove Chart in PDF report in Splunk 5</title>
      <link>https://community.splunk.com/t5/Reporting/Remove-Chart-in-PDF-report-in-Splunk-5/m-p/26496#M476</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Using the new PDF export feature in Splunk 5, I generate a PDF report that prints multi-line results per Organization.&lt;/P&gt;

&lt;P&gt;This works perfectly. &lt;/P&gt;

&lt;P&gt;However there are 10,000+ organizations with TIMES 20 rows per org.&lt;/P&gt;

&lt;P&gt;There is an ugly chart that the report displays on top (because the search I used has a stats in it).&lt;/P&gt;

&lt;P&gt;Anybody know how to remove a chart on top from a Splunk 5 PDF report when the search that generates the report has a "stats" in its criteria ? &lt;/P&gt;</description>
      <pubDate>Sat, 09 Feb 2013 19:05:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Remove-Chart-in-PDF-report-in-Splunk-5/m-p/26496#M476</guid>
      <dc:creator>asarolkar</dc:creator>
      <dc:date>2013-02-09T19:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Chart in PDF report in Splunk 5</title>
      <link>https://community.splunk.com/t5/Reporting/Remove-Chart-in-PDF-report-in-Splunk-5/m-p/26497#M477</link>
      <description>&lt;P&gt;Hi, if still applicable on december 2014&lt;/P&gt;

&lt;P&gt;Can you post your search request please ?&lt;BR /&gt;
Olivier.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Dec 2014 08:51:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Remove-Chart-in-PDF-report-in-Splunk-5/m-p/26497#M477</guid>
      <dc:creator>o_calmels</dc:creator>
      <dc:date>2014-12-22T08:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Chart in PDF report in Splunk 5</title>
      <link>https://community.splunk.com/t5/Reporting/Remove-Chart-in-PDF-report-in-Splunk-5/m-p/26498#M478</link>
      <description>&lt;P&gt;I don't know any straight forward answer for this. but I have an work around for this..&lt;BR /&gt;
My Suggestion is :&lt;BR /&gt;
       *    Create a css file inside your apps &lt;STRONG&gt;appserver/static&lt;/STRONG&gt; directory&lt;BR /&gt;
       *    Edit your &lt;STRONG&gt;appserver/static/application.js&lt;/STRONG&gt; as below&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;switch (Splunk.util.getCurrentView()) {
    case "Your_view_name":
        if(window.location.href.indexOf("output=pdf")){
            jQuery("&amp;lt;link rel=\"stylesheet\" type=\"text/css\" href=\"/static/app/AppName/cusPdf.css\"/&amp;gt;").appendTo("head");
        }
        break;
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The above code will load your css file into your html only when the url contains teh string &lt;STRONG&gt;"output=pdf"&lt;/STRONG&gt; (It is the parameter required to generate pdfs).&lt;BR /&gt;&lt;BR /&gt;
Inside your css file , write your css rules to hide the map or table or graph you want.. Even you can customize your PDF contents &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; eg:
.firstCell {
    display: none !important;
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you know the the UI module used by your graph or charts you can directly sett= inline style using javascript/jQuery ...&lt;BR /&gt;
Refer sample application.js  for more info&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/Module/Example3-Simplecustomizations"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.2/Module/Example3-Simplecustomizations&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2015 10:26:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Remove-Chart-in-PDF-report-in-Splunk-5/m-p/26498#M478</guid>
      <dc:creator>paramagurukarth</dc:creator>
      <dc:date>2015-04-03T10:26:43Z</dc:date>
    </item>
  </channel>
</rss>

