Friday, April 25, 2008

Running the Code

Open a PDF in Acrobat In Word, run the macro by selecting Tools Macro Macros . . . SummarizeComments and then clicking Run. After a few seconds, a new Word document will appear. It will list all the comments that readers have added to each page of the currently visible PDF.

This script demonstrates the typical process of drilling down through layers of PDF objects to find desired information. Here is a simplified sketch of the layers:


app
The currently running Acrobat program. Use the app to alter the user interface or Acrobat's preferences.

avdoc
The PDF currently displayed in Acrobat. Use the avdoc to change how the PDF appears in the viewer or to print pages.

pddoc
Represents the underlying PDF document. Use the pddoc to access or manipulate the PDF's pages or metadata.

pdpage
Represents the underlying PDF page. Use the pdpage to access or manipulate a page's annotations, its rotation, or its cropping.

These OLE objects closely resemble the objects exposed by the Acrobat API. The API gives you much more power, however.

2 comments:

Bali Sunset said...

Anyone succeed in running this code?

Please notify me, thank's

Anonymous said...

I've tried the code

it work's quite well

good job