Jump to content

Recommended Posts

Posted

I recently published a UDF that is compatible with Adobe Acrobat Pro, but I would like to also create/assist with one for Adobe Reader since most people don't have Pro (I only have it at work). I was able to find this document which documents what is available in Adobe Reader, but I'm unsure of how to get started with it. I can create a AcroPDF.PDF object, but I'm unsure of how to make it visible. There is also a fair amount of JavaScript automation, but there is no documented (that I see) way to get the JavaScript object. So far, all I've been able to do is create the object and not get a COM error when attempting to load the file

Local $oReader = ObjCreate("AcroPDF.PDF")
If $oReader.LoadFile($sFile) = 0 Then Exit ConsoleWrite("! -- Error: Unable to load file!")

Anyone else have any ideas or a start on this?

All my code provided is Public Domain... but it may not work. ;) Use it, change it, break it, whatever you want.

Spoiler

My Humble Contributions:
Personal Function Documentation - A personal HelpFile for your functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts
UI-SimpleWrappers UDF - Use UI Automation more Simply-er
KeePass UDF - Automate KeePass, a password manager
InputBoxes - Simple Input boxes for various variable types

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...