How to Generate PDF through URL and how to modify the header footer details?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2022 01:43 PM
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.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2022 09:41 PM
Please set the system property named "glide.pdf_export_from_form_list.show_report_attrs" to false
Thanks & Regards,
Vasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2022 09:18 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2022 10:02 PM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader