Merge multiple PDF Attachments

kalyani8
Giga Expert

Hi,

We are trying to combine multiple PDf'S from a table record to ONE PDF, we tried using the OOB PDF generator but it didn't work as we are not sure what parameters need to be passed on. We also tried multiple approaches like attachment API, GlideSysAttachment, encode decode GlideStringUtil, base64.

 

Thanks in advance !

 

9 REPLIES 9

@Ankur Bawiskar 

 

Can you elaborate more and provide scripts for 2,3,4 steps? 

@Ankur Bawiskar 

Can you elaborate more and provide scripts for 2,3,4 steps? 

kalyani8
Giga Expert

Hi ,

Thanks for the approach.

I tried implementing that approach, but could not succeed. I'm not exactly able to include the java code using mid server. There has to be jar files included i believe. Kindly provide a way to do that.

 

Thanks,

Kalyani

Hi Kalyani,

you can write a java code and it won't require the jar file

check links below for sample java code

it includes a external library; add that to the mid server and then modify the script

https://stackoverflow.com/questions/3585329/how-to-merge-two-pdf-files-into-one-in-java

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Drew Carpenter
Tera Expert

Is there any feasibility of this working without a Mid Server?