- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Never used Adobe SDK, will look one day. PDFtk is really useful, I use it for extracting bookmark information and updating that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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;
Jag
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi Jag,
Thank you for this. My PDF files have already been created, so unfortunately I cannot use this method.
Many thanks,
Kriss