Link Detection Module
March 30, 2020 ยท View on GitHub
Purpose
The Link detection module detects URLs, GoTo and mailto links inside PDF metadata and it's text contents.
What it does
It adds the property targetURL to the matching Words.
Dependencies
None.
How it works
- It uses pdfminer's
dumppdfutility andxml-streamlibrary to process document metadata as XML and find links with their bounding boxes and page number. - Also for each word on document it uses two RegExp to match URL's or emails as strings and also set their
targetURL
Accuracy
All correctly detected links from the extractor are well preserved, and the accuracy can thus be reported to be pretty good.
Limitations
- Any 'Action' type link inside metadata is ignored for now. (Can't match their respective bounding boxes).