
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2017 07:05 AM
Has anyone customized their pdf exports?
Such as like a custom header?
I'm trying to find a good example or something to point me in the right direction. I've been going through UI Actions and the default UI Context menu to go off of but I can't seem to find some of the functions used in it.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2017 08:37 AM
Hi Joshua,
You won't be able to get to see the code behind the GwtPollDialog so you can go the above approach.
You can also check below links
I am a creator — PDF Document Generator - Walter Brame
http://wiki.servicenow.com/index.php?title=PDF_Web_Service#gsc.tab=0
Custom PDF Files in ServiceNow through PDFCrowd | John Andersen
Also one thing you can do is in the script of UI action for form button add this script
this works for form view
var url = '/u_sample_table.do?PDF&sys_id=' + g_form.getUniqueValue() + '&sysparm_view=default' ;
window.open(url,'_blank');
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2017 08:37 AM
Hi Joshua,
You won't be able to get to see the code behind the GwtPollDialog so you can go the above approach.
You can also check below links
I am a creator — PDF Document Generator - Walter Brame
http://wiki.servicenow.com/index.php?title=PDF_Web_Service#gsc.tab=0
Custom PDF Files in ServiceNow through PDFCrowd | John Andersen
Also one thing you can do is in the script of UI action for form button add this script
this works for form view
var url = '/u_sample_table.do?PDF&sys_id=' + g_form.getUniqueValue() + '&sysparm_view=default' ;
window.open(url,'_blank');
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2017 09:18 AM
I think those will point me in the right direction.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2017 10:24 AM
Hi Joshua,
Thanks for marking the answer as correct and helpful. It would be great if you endorse the content so that it has high visibility. Thanks in advance.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2019 11:56 AM
by using UI action script, PDF downloaded, as well can we add LOGO on top of PDF.
function createPDFESS() {
var sysparm_table = g_form.getTableName();
var sysparm_sys_id = g_form.getUniqueValue().toString();
var url = sysparm_table + '.do?PDF&sys_id=' + sysparm_sys_id;
window.open(url);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2024 02:21 PM - edited 04-29-2024 02:22 PM