Hello, I would like to combine two PDF files (which are already stored externally) into one file by using SAS. I've seen a paper on how to achieve this with Proc Groovy, but the paper does not give all the instructions.
Thank you for your help!
Many thanks,
Kriss Harris
You would call command line PDF combine:
https://forums.adobe.com/thread/1524493
Or the very useful PDFtk:
https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/
Its not a SAS thing to combine PDFs. I would imagine groovy is calling some Java library to combine PDFs.
You would call command line PDF combine:
https://forums.adobe.com/thread/1524493
Or the very useful PDFtk:
https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/
Its not a SAS thing to combine PDFs. I would imagine groovy is calling some Java library to combine PDFs.
Thank you for this RW9. The PDFtk works well. I wanted to do it via the command line, but I didn't know much about the ADOBE SDK and how to do it that way. Have you done it that way before please?
Never used Adobe SDK, will look one day. PDFtk is really useful, I use it for extracting bookmark information and updating that.
Hi Kriss Harris,
could you please try the below code, hope it will work.
ods pdf file=’~path\final.pdf’;
ods pdf(a) file="~path\a.pdf";
ods pdf(a) close;
ods pdf(b) file="~path\b.pdf";
ods pdf(b) close;
ods pdf close;
Hi Jag,
Thank you for this. My PDF files have already been created, so unfortunately I cannot use this method.
Many thanks,
Kriss
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.