Skip to main content
Inspiring
January 26, 2021
Answered

How to automate adding a page to a pdf file?

  • January 26, 2021
  • 3 replies
  • 640 views

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 has been closed for replies.
Correct answer MnInShdw

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
January 27, 2021

I found a sample code here:

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

 

It does exactly what I need.

Thank you.

try67
Community Expert
Community Expert
January 26, 2021

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

Legend
January 26, 2021

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