This tool is inspired by forum posts viewtopic.php?t=45812 and viewtopic.php?t=27327
Usage
If you only want to summarize select markups, first select the markups, and run the tool (Comments > Report Comments...) It will open a dialog: Markups to include
Select whether to use all markups, or only enter pages to get markup from. If you have markups selected when the tool is started, you can apply the tool to current selection.
Report Organization
- You can add or remove the summary levels. In the picture above, the summary will be first by page number, then by the strokeColor of the markup.
- Sum values will add up areas, lengths, numbers, currency, or concatenate text.
Count values will just count the number of areas, lengths, numbers, currency, or text annotations found.
Output values will list each markup value.
- Contents to Include in Report: It can skip Blank, Text-only or Currency values in the report
If numbers are interspersed inside text, it can find the numbers and add them up; or it can treat this comment as text.
Use Color Names: If checked, it tries to get a plain-text description of the color (ie "Orange"). Otherwise it will output the color in hexadecimal (web) format.
You can also adjust the amount each level of the summary indents, and the relative text size. I think this is a multiplier on 11pt text.
Decimal and Thousands separators: If your locale uses different separators, change them here. The script needs to change the text of the dimensions to a number, so if these are wrong, it won't know that 1.000 = 1000 not 1 for instance.
Accounting/Currency Format: There are some predefined accounting and currency formats in the drop down list at the top left; or change the RegExp, RE group and prinf options:- RegExp is a regular expression that has the numerical portion of the currency in capture groups. It's set up as (negative numbers) | (positive numbers)
- -,+ RE group is the capture group for negative,positive in the regular expression
- -,+ printf is the formatting string to output the result in the report. Its set up as "negative formatting string","positive formatting string" and uses util.printf to format the number (there's information about the parameters in a pop-up alert if you press the button i on the right).
Extract (unzip) the zip file and save the files into the JavaScript folder (either in %APPDATA%\Tracker Software\PDFXEditor\3.0\JavaScripts or in the application folder). After restarting PDF XChange it will add a menu item "Report Comments…" to the Comment ribbon and to the Comment menu (in the classic UI) If you want to minimize the number of files: At an absolute minimum, you need "annotReport.js". "1ang.js" enables translation files, and "xutil.colorUtils.js" enables the text version of colors. Translations
This tool can be translated into other languages. Here's the language file (the tool at viewtopic.php?p=186101#p186101 will help editing it)