Skip to main content
Inspiring
Jan 26, 2021 1:41 AM UTC
Answered

How to automate adding a page to a pdf file?

I'm trying to automate adding a separately saved pdf file as a new page to another pdf. Or simply combine two pdf files.

 

Either from Microsoft Excel VBA or Acrobat's Java Script.

 

Any kind of advice is appreciated.

This topic is closed to new replies. Start a new post to keep the conversation going.
MnInShdwCorrect answer
Inspiring
Jan 27, 2021 5:15 AM UTC

I found a sample code here:

https://pdf-file.nnn2.com/?p=223

 

It does exactly what I need.

Thank you.

3 replies

MnInShdwAuthorCorrect answer
Inspiring
Jan 27, 2021 5:15 AM UTC

I found a sample code here:

https://pdf-file.nnn2.com/?p=223

 

It does exactly what I need.

Thank you.

Translate
try67
Community Expert
Community Expert
Jan 26, 2021 11:22 PM UTC

With JS you can use the insertPages command to do it.

Translate
Legend
Jan 26, 2021 12:55 PM UTC

The Acrobat SDK gives info under "Interapplication communication" on how you can do that with Acrobat via Visual Basic or JavaScript.

Translate