Print a page using url in the background
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2024 04:47 PM - edited 06-27-2024 04:50 PM
Hi,
is there an api or a way we can write a script to generate PDF in the background when we provide url of the UI page (not the table view) we want to print?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2024 10:45 PM
Hello @Mamatha3
Check these two links below it may help you some way:
https://www.servicenow.com/community/developer-forum/ui-page-to-pdf/m-p/1455710
https://www.servicenow.com/community/developer-articles/generating-a-pdf-from-html/ta-p/2306347
Hope it helps
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2024 10:22 AM - edited 06-28-2024 10:24 AM
Hi Murthy,
Thanks for the response.
But , the requirement is to generate it in the background, so we will not open the page that needs to be printed.
The script should print the PA dashboard periodically, with the help of dashboard url.
for the second link , generating pdf from html , is there a way we can get html of a page if url is provided ? (the page has lot of PA widgets in the pa dashboard).
Thanks