Skip to main content
cncah
Participant
March 16, 2016
Question

Add a note to an open pdf

  • March 16, 2016
  • 1 reply
  • 963 views

I am trying to create my first program to interface with Adobe Acrobat Pro DC. I've got to

where I can create an instance of Adobe Acrobat and open a pdf. I now need to create a

text note, set the font style, color, and size. Then place this note in a particular location

on the pdf. I am using this as a stand alone program interfacing with Acrobat through COM.

I'm coding in VB.Net. Does anyone have any sample code for accomplishing this? I've gone

through the samples included with the SDK, but can't find anything on adding a simple note.

Any help would be greatly appreciated. Thanks.

This topic has been closed for replies.

1 reply

Legend
March 16, 2016

‌ACrobat can do so much that you won't generally find samples for anything you want to do. instead it's all about careful study of the documentation. The API you will want to study us the VB:JavaScript linkage which lets you run most JavaScript. That cracked, you can study the HavaScript API. JavaScript can add comments.

cncah
cncahAuthor
Participant
March 17, 2016

Ok, I found an example for adding a comment that does a pop up window. But I don't need a pop up window, I need to add a simple line of text. And the code has all the variables declared as "Object". So I don't get intellisense in Visual Studio. Is there a more in depth API reference that lists all the methods for the Java Script Object?

Legend
March 17, 2016

Visual Studio will not help you, there is no autocompletion for these methods. You need the Acrobat JavaScript API, which is part of the Acrobat SDK documentation, and runs to many hundreds of pages.