The CreatorCon Call for Content is officially open! Get started here.

How to Generate PDF through URL and how to modify the header footer details?

Prasanna Kumar
Giga Contributor

Hi Team,

I can able to Generate PDF by using below UI action:

I've create a view and by following way created UI action. It is working as expected. 

var url = '/incident.do?PDF&sysparm_view=major_incident_-_p1-p2&sys_id='+current.sys_id;
action.setRedirectURL(url);

But, in resulting PDF, I want to modify/Remove the header and footer: Please guide me how to modify/remove the Header.

find_real_file.png

3 REPLIES 3

Vasantharajan N
Giga Sage
Giga Sage

Please set the system property named "glide.pdf_export_from_form_list.show_report_attrs" to false


Thanks & Regards,
Vasanth

Hi Prasanna, Glad that my answer helped you. Please mark correct if that solves your issue so that other people can refer the solution in future. 


Thanks & Regards,
Vasanth

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can check the point mentioned by Vasantharajan

Also I will suggest you to have a look on how to generate custom PDF using the new PDFGenerationAPI

Generating Custom PDFs - using the new PDFGenerationAPI

regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader