Using VB/VBA to apply stamps on PDFs.
I know stamps can be manually applied using Acrobat Reader DC, but we produce some very large PDF documents where certain pages are required to be stamped as "Approved" and "Reviewed". Some of the PDFs can be over 3000 pages and have several hundred that need to be stamped. Doing this manually can take over an hour.
I have built a Visual Basic program to apply the appropriate stamps, and it works on my computer, but my computer has Adobe Acrobat DC installed. This program needs to work with our other workstations that have only Acrobat Reader DC installed.
The reference I am using in my VB Project is "Acrobat" and the installed path is C:\Program Files\Adobe\Acrobat DC\Acrobat.tlb. The odd thing is that the reference selection window shows it as "Acrobat" but once included in the project it shows "Adobe Acrobat 10.0 Type Library"
Currently, when I run the program on a Reader workstation I get an error that ActiveX cannot create these objects:
Dim MyAVDoc As Acrobat.AcroAVDoc
Dim MyPDDoc As Acrobat.CAcroPDDoc
Set MyAVDoc = CreateObject("AcroExch.AVDoc")
Set MyPDDoc = CreateObject("AcroExch.PDDoc")
What am I doing wrong? Is there a setting in Reader DC that would enable this to work. Is this even possible using only Acrobat Reader DC?
Thanks!