Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

VBA ReplacePages Method Fails

New Here ,
Sep 28, 2023 Sep 28, 2023

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.

 

 

TOPICS
Modern Acrobat
104
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation