Skip to content

Instantly share code, notes, and snippets.

@joelkuiper
joelkuiper / gist:9eb52555e02edb653dcf
Last active February 17, 2025 07:47
highlight a pattern with PDFBox
The PDFTextAnnotator will accept a PDF and a pattern, it will highlight all occurances of that pattern in the document.
It inherits from the PDFTextStripper (so things like start end end page should still be configurable)
See the App file for a basic usage example