Skip to main content
ChristianBahnsen
Inspiring
November 16, 2018
Question

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

  • November 16, 2018
  • 1 reply
  • 11198 views

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 has been closed for replies.

1 reply

try67
Community Expert
Community Expert
November 20, 2018

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.