How to merge multiple PDF files into one single PDF on the click of UI Action and attach PDF.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 10:17 AM
How to merge multiple pdf files into one single pdf on the click of UI Action -
Please see below scenario -
1. On a record there are multiple PDF's.
2. On a click of UI Action button , all PDF's should be combined to form one single PDF.
3. Combined PDF should be attached to the same record.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 02:59 PM
@sisf I found a question on the similar lines here https://www.servicenow.com/community/developer-forum/merge-multiple-pdf/m-p/2547042.
Also, if you are open to use RPA hub, then it also provides a PDF connector here are the details https://docs.servicenow.com/bundle/vancouver-integrate-applications/page/product/rpa-studio/concept/...
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2023 03:14 PM
@Sandeep Rajput Thanks for Replying. But solution proposed is not complete and lack detailed steps , due to which it's difficult to implement.
Nope , we cannot use RPA.
I am trying use PDF-lib min.js file in UI Script and calling that in UI Page using HTML input file. It's working fine and able to merge the PDF's.
-----------------------------------------------------------------------------------------------------------------------------------------
This is the Code of UI Page :
-----------------------------------------------------------------------------------------------------------------------------------------
It's working fine and able to merge the PDF's.
But our scenario is to to merge the pdf files already attached to the record using UI Action. So not able to implement this. Is there any way we can leverage above code to create UI action to merge the pdf.
PS - I have already saved min.js in UI script , which is global.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 11:53 AM
@Shakeel Shaik @Allen Andreas @Amit Gujarathi @Mark Roethof Hello All, Can you please help with the below issue :
How to merge multiple pdf files into one single pdf on the click of UI Action -
Please see below scenario -
1. On a record there are multiple PDF's.
2. On a click of UI Action button , all PDF's should be combined to form one single PDF.
3. Combined PDF should be attached to the same record.
Please reach out incase more information is required from my end.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2023 03:15 PM
@Ankur Bawiskar Can you help with the above requirements , I saw that you have given explaination on mid server way , It would be great , if you can elaborate that.