Created
May 31, 2022 14:48
-
-
Save temberature/1808da212c7937b2c022fef07a65b7a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var i = getPageNumWords(); | |
for (var p = 0; p < i; p++) { | |
var word = getPageNthWord(0, p, false); | |
console.println(word); | |
if (word == "通" && getPageNthWord(0, p - 1, false) == "沟") { | |
var annot = this.addAnnot({ | |
page: 0, | |
type: "Highlight", | |
author: "A. C. Robat", | |
point: [300, 400], | |
strokeColor: color.yellow, | |
contents: "Need a little help with this paragraph.", | |
noteIcon: "Help", | |
quads: getPageNthWordQuads(0, p), | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment