Skip navigation
Currently Being Moderated

How to write a text file from Acrobat javascript

Aug 17, 2012 8:54 PM



Can anyone help me how to export PDF comments to a text file using javascript.




  • George Johnson
    11,668 posts
    Aug 11, 2002
    Currently Being Moderated
    Aug 17, 2012 11:48 PM   in reply to gopaljay78

    You can create a data object (doc.createDataObject) containing the various comment properties you're interested in, and export it (doc.exportDataObject), and perhaps delete it (doc.removeDataobject). You can also export just comments to an XML (XFDF) file using the doc.exportAsFDF method. See that Acrobat javaScript reference for more info.

    Mark as:
  • Currently Being Moderated
    Aug 18, 2012 9:14 AM   in reply to gopaljay78

    Create a report using the Report object and save as a pdf or text file.


    Generating Reports with JavaScript Dave Wraight Planet PDF Contributing Editor 

    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