Desktop productivity for business analysts and programmers

Concatenating PDF files in EG

Reply
N/A
Posts: 0

Concatenating PDF files in EG

Hello,

I have one huge Enterprise Guide (version 4.1) project where each "branch" ends with a graph or table. These are all PDF outputs.

I then want to automatically send an email to x people. However, I would like to concatenate all PDFs into ONE PDF that I could email, instead of emailing one PDF for each branch.

I'm a fairly novice user, so any guidence would be helpful. If it is possible to do in the actual GUI of EG, that would be of great help to. The Document builder seems to work only for HTML files...
SAS Super FREQ
Posts: 8,720

Re: Concatenating PDF files in EG

Hi:
If you do this in a code node:
[pre]
ods pdf file='all_in_one.pdf';
** proc or analysis 1; run;

** proc or analysis 2; run;

** proc or analysis 3; run;
ods pdf close;
[/pre]

You will get the results of all 3 procedures in one PDF file. I suspect that EG is isolating each task within a separate ODS PDF "sandwich" and so, if you had 3 procedures or tasks, you would get 3 separate PDF files.

If you do not use the above technique (putting all your procedure code within one ODS PDF "sandwich" in a code node, then you would need to use an Adobe product (Adobe Acrobat, PageMaker, FrameMaker, etc) or some third-party PDF builder in order to concatenate multiple PDF files together into one file.

The good news is that EG will let you export the code from your project and then you can grab that code and insert it into one ODS PDF sandwich,instead of the way that EG is doing it now.

cynthia
N/A
Posts: 0

Re: Concatenating PDF files in EG

I agree with Cynthia's solution of sandwiching the procs in one "ods pdf" code note. Also, for my particular situation I still needed a third-party PDF builder to combine various PDFs using my BY variable. I used something called PDF Split-Merge with had both GUI and command line support so I can process it in a batch file. It was also very inexpensive.
http://www.verypdf.com/pdfpg/index.html
Ask a Question
Discussion stats
  • 2 replies
  • 113 views
  • 0 likes
  • 2 in conversation