Enable Header and Footer for only first page of PDF using PDF Generation API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2025 07:48 AM
Hi, I am working for a requirement, the client wants to generate a custom pdf for one of his table records, and one specific requirement is they want heaer and footer only in the First Page.
As the PDF is a very complicated One involving the data of many related tables, We Used "
PDFGenerationAPI",
to demostrate it here i created a dummy use case in my instance,
My question is , is there any method in this API or somewhere in Servicenow to access, how many Pages are being created for the PDF everytime and based on that, i want to show the header and footer for those specific pages.
Here is the dummy code i wrote for understanding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2025 08:06 AM
I doubt this much customization is allowed in that API.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2025 08:09 AM
yeah, i also feel the same
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2025 11:30 PM
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader