But I made a tool that allows selecting the comment author(s) and it generates a new file, with bookmarks to the page ranges. Multiple selection was added in Build 392 so for versions before that you can only select one author.
Installation
Extract the files and save in %APPDATA%\Tracker Software\PDFXEditor\3.0\Javascripts\
Usage
When PDF-XChange is restarted, it adds menu item "Extract Comment Pages…" to the Documents menu, and to the Organize ribbon (ribbon UI).
Open the document you want to copy the pages from, and run the tool. It will show a dialog with a list of all the comment authors. Select whose comments you want to include: Include Hidden Comments
If this is unchecked, comments that are on hidden (off) layers, or comments with their Hidden flag set will be excluded when checking if a page should be extracted. Hidden comments are still included if a page has a visible comment by one of the selected authors.
Pick at least one author, then press OK.
The script then creates a new document and adds all the pages that have comments by the selected author(s). It also adds bookmarks to each page range with the page numbers that range came from: Limitations
Multiple selection isn't working yet.Workaround: Use heir_list_box (where it is working).- The document should be saved first. It pops up a dialog to warn you. Javascript accesses the saved file when copying page ranges (not the currently open document), so changes in the currently open document that haven't been saved won't be included in the extracted pages.
- Adding bookmarks is through a workaround that uses the built-in "New Bookmark" menu item, and then tries to figure out which bookmark was added to rename it. Fixed v1.5
Different localizations use different untitled bookmark names, so it needs 1ang.js to get the appropriate translation.
There's an option to compare authors case insensitive: Edit the file on line 30:
Code: Select all
// author list case sensitive
const authorsCaseSensitive = false;
Translation strings are:
Code: Select all
{
"": {
"Extract Comment Pages…": "",
"Extract only pages with comments by selected authors.": "",
"Extracting pages %1.": "",
"Warning: The document is not saved. This script extracts pages from the SAVED version.\nDo you want to save the document now?": "",
"Save Document": "",
"Select Comment Authors": "",
"Select comment authors to include in the extracted pages:": "",
"Hold down SHIFT to select multiple contiguous, CTRL to select multiple discontiguous.": "",
"Include pages with hidden annotations": "",
"Making New Document…": "",
"Adding Bookmarks to new document.": "",
"Page %1": "",
"Pages %1-%2": "",
" from [%1]": "",
"New Document": ""
}
}