Skip navigation
Currently Being Moderated

Summary of Comments on a  single page?

Jul 30, 2009 12:12 PM

(This isn't platform specific so I'm moving the post to the more active forum.)

 

I've been trying to find a way to get the summary of comments to print on a single page. I don't want to print 40 pages each with a line of text. Is there a way to do this?

 

I tried exporting to text and rtf from the PDF, but it's a mess. Any suggestions?

 
Replies
  • Currently Being Moderated
    Jul 30, 2009 12:34 PM   in reply to FivePicaPica

    Have you looked at the 'Summarize Comments.." options?

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 30, 2009 1:34 PM   in reply to FivePicaPica

    I've created a custom-made product that does this. Have a look here:

    http://try67.blogspot.com/2008/11/acrobat-create-comments-summary-txt- pdf.html

     

    If you're interested in it, contact me privately via email or PM.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 30, 2009 2:27 PM   in reply to FivePicaPica

    From the Acrobat JS API:

     

    // Get the comments in this document, and sort by author
    this.syncAnnotScan();
    annots = this.getAnnots({nSortBy: ANSB_Author});
    // Open a new report
    var rep = new Report();
    rep.size = 1.2;
    rep.color = color.blue;
    if (annots) {
    rep.writeText("Summary of Comments: By Author");
    rep.color = color.black;
    rep.writeText(" ");
    rep.writeText("Number of Comments: " + annots.length);
    rep.writeText(" ");
    var msg = "\200 page %s: \"%s\"";
    var theAuthor = annots[0].author;
    rep.writeText(theAuthor);
    rep.indent(20);
    for (var i=0; i < annots.length; i++) {
    if (theAuthor != annots[i].author) {
    theAuthor = annots[i].author;
    rep.writeText(" ");
    rep.outdent(20);
    rep.writeText(theAuthor);
    rep.indent(20);
    }
    rep.writeText(
    util.printf(msg, 1 + annots[i].page, annots[i].contents));
    }
    } else {
    var msg = "No annotations found in this document, %s.";
    rep.writeText(util.printf(msg, this.documentFileName));
    }
    // Now open the report
    var docRep = rep.open("myreport.pdf");
    docRep.info.Title = "Comments for " + this.docuentFileName;
    docRep.info.Subject = "Comments";

     
    |
    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