Skip navigation
Currently Being Moderated

jscript project

Aug 4, 2012 1:50 PM

Tags: #annotations #adobe #8 #jscript

I am new to the world of jscript and Adobe. I currently use Adobe 8 Pro.  In reading the jscript api, it would appear to me that I should be able to program jscript to solve a problem I have. Assume I have 10 pdf files each with 10 pages more or less. Further assume that I have 5 annotations (which change from project to project). My goal is to have jscript create a new pdf file which "summarizes" all of the tags that have been placed in the other 10 files.

My "pseudo code" would be:

Ask me for my 5 annotations (or read them from a file)

Browse for a group of files to be annotated (Multiple selection of 10 files from dialog)

Open all files.

Allow me to page through each file, marking annotations as I go. Ideally, I could right click on a page and then select from one of the 5 annotations.

Since some annotations may span multiple pages in a document, I would want a way to easily specify that the annotation spanned multiple pages. Also I will want to be able to put multiple annotations on some pages.

Save "Annotated" version of all files

Create new Summary file containing my list of annotations followed by the document name and page numbers of the annotations.

Can someone please point me in the proper direction as for as coding examples go? All help would be greatly appreciated!

  • Currently Being Moderated
    Aug 5, 2012 2:57 AM   in reply to TechyAtty

    That exact workflow is not something you could do with scripting - the JSAPI has no ability to drive asynchronous parts of the user interface (it cannot "watch" as you apply comments to a file) and has only very basic support for dialogs. You can create a PDF Report of the comments within a file using an application-level script, but you would have to identify your annotations via one of the default properties (author name, date, color, etc.) instead of tracking them as they're placed.


    Annotations in PDF files cannot span pages (nothing can - every object in the PDF content stream is defined by a single page number and a position rectangle). Try drawing a markup shape or highlight past a page boundary and you'll find Acrobat simply won't allow it.

    Mark as:
  • Currently Being Moderated
    Aug 6, 2012 8:21 AM   in reply to TechyAtty

    You might want to look at the Bates Numbering or some type of automation of placing annotations and creating a summary report of the Annotations.


    Automating Placement of Annotations by Thom Parker


    Bates numbering across a PDF Portfolio using Acrobat 9 by Rick Borstein

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points