Skip to main content
Participant
September 29, 2023
Question

VBA ReplacePages Method Fails

  • September 29, 2023
  • 0 replies
  • 148 views

Hello all,

 

I have a macro that opens 2 pdf's and replaces pages from one with the pages from the other, in order to keep form data I put on it. I worked with Acrobat 2017 and it worked perfectly with this code:

If Doc1.ReplacePages(Doc1.GetNumPages - 1, Doc2, 0, Doc2.GetNumPages, 1) = False  Then
   MsgBox "Cannot replace pages"
   Exit Sub
End If

My firm has update all Acrobat with Acorbat Pro subscription for having the same versions. And now the code and now the code no longer works (Test with 32/64bits).

 

Do you no if something have change with SDK on new versions ?

 

Thank you.

 

 

This topic has been closed for replies.