I have many PDFsf with 100s of annotations/comments in them, created through the free Adobe Acrobat Reader. By reading this official guide, and skimming trough related pages, I see that I can "export" the comments in FDF files or XFDF format.
However, these files can't be opened by themselves without the original, from the first link:
You cannot open and view FDF files or XFDF files on their own.
I would like to export the comments as a text file containing only the text of the comments.
42 Answers
This is a bit convoluted, but it works.
Follow the instructions here to export the comments and export them to an XFDF file:
Rename the file's extension to XML (i.e. if filename was "comments.xfdf", change its name to "comments.xml".
Open the XML file using google chrome.
Select all (Ctrl+A) and then copy (Ctrl+C).
Open a new Chrome window and navigate to this link (it creates a blank notepad):
data:text/html,%20<html%20contenteditable>Click on the white area and paste (Ctrl+V).
Select all (yes, again, Ctrl+A).
Copy (Ctrl+C).
Paste in a Word document.
Note: It may work with other browsers, but at least for me, when copying/pasting from Firefox, I'd end up with all the XML code in word.
3Open the fdf file in Notepad++
Replace
<body[^>]*>(.*?)<\/body>with22222\133333(don't forget to set search mode as regular expression and "matches newline")Put
33333in the beginning of the documentPut
22222in the end of the documentReplace
33333(.*?)22222with an empty stringSave file as .html document, open in browser
Voila!
33333 and 22222 can be any sequence as long as it does not appear in your comments.