Export HTML (which Linked from URL) to PDF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2025 11:42 PM - edited 03-19-2025 01:50 AM
Hi Experts,
I have a requirement:
Click Export PDF button in page1, then generate the HTML to PDF documents for each page which in the URLs.
Currently, we have the following code:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2025 12:47 AM
what's your business requirement here?
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
03-19-2025 12:59 AM
Hi Ankur,
Thank you for your reply.
I would like to export the HTML to PDF. But The HTML are in other pages. we should click the link href="{{gs.getProperty('glide.servlet.uri')}}/sp?id=timesheet_by_client_list&client={{record.client.sys_id}}&year={{clientTimesheetData.filterData.year.value}}&month={{clientTimesheetData.filterData.month.value}} to get the HTML.
But what I would like to do is click button Export PDF on this page to export all the pages in the links,
How can I implement this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2025 01:51 AM
Hi All,
I think maybe we can use a work around to implement this. I can set the PDF export logic in Service Side Script. just need to checked data as input.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2025 03:00 AM
what's your business requirement here?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader