Skip to main content
ChristianBahnsen
Inspiring
Nov 16, 2018 4:37 PM UTC
Question

Acrobat and Powershell -- the basics of opening and working with PDFs with Powershell

I've been refreshing/expanding my understanding of how to use the Acrobat Interapplication Communication OLE Automation in Powershell to work with PDFs.

I'd appreciate any feedback on the following code, which I view as the basics of creating the App, PDDoc, and AVDoc COM objects needed to open, work with, and clean up after working with a PDF.  Are there better/more efficient ways to accomplish the same end?

(I had to paste the code in as an image because I didn't see a way to paste code in this editor.)

Thanks

Christian Bahnsen

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

try67
Community Expert
Community Expert
Nov 20, 2018 10:15 AM UTC

To mark code as such select it in the editor, click the Insert tool, then select Syntax Highlighting and then the relevant language:

When sending a reply you must first click the Use Advanced Editor button at the top right-hand corner of the reply window to gain access to this tool, but it should be available by default when creating a new discussion, I believe.

Translate