-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGIM Fix Comments.sequ
More file actions
23 lines (23 loc) · 1.48 KB
/
GIM Fix Comments.sequ
File metadata and controls
23 lines (23 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<</Commands [/c << /0 [/c << /Config [/c << /UIPolicy [/i 3]
>>]
/HandlerName [/a /JavaScript]
/Params [/c << /ScriptCode [/t (//GIM Fix Comments\r\n//2015-2016 - Logan Hampton\r\n\r\n var annots, saveText;\r\n //Get annotations\r\n //console.show\(\);\r\n for \(var pg = 0; pg < this.numPages; pg++\) {\r\n annots = this.getAnnots\({\r\n nPage: pg\r\n }\);\r\n \r\n if \(annots === null\) {\r\n continue;\r\n }\r\n\r\n //Loop through annotations, finding Carets, Text \("Popups"\), and Highlights\r\n //to save their text and re-enter it to fix large sizes\r\n for \(var i = 0; i < annots.length; i++\) {\r\n if \(annots[i].type === "Caret" || annots[i].type === "Text" ||\r\n annots[i].type === "Highlight"\) {\r\n console.println\(annots[i].type + " contents are: " + annots[i].contents\);\r\n saveText = annots[i].contents;\r\n annots[i].contents = saveText;\r\n }\r\n }\r\n }\r\n app.alert\("Comments Fixed!"\))]
/ScriptName [/t ()]
>>]
/Title [/t (Execute JavaScript)]
>>]
>>]
/Description [/t (Fixes oversized comments printing out in Comment Summaries)]
/Input [/c << /FileVariation [/i 3]
>>]
/Output [/c << /AddToBaseName [/b false]
/DontOverwrite [/b false]
/EmbedIndex [/b false]
/FileVariation [/i 3]
/HandleOutput [/b true]
/NumbericNaming [/b false]
/OptimizePDF [/b true]
/PresetName [/t (Standard)]
/RunPDFOptimizer [/b false]
>>]
>>