jsvine / pdfplumber

Plumb a PDF for detailed information about each char, rectangle, line, et cetera — and easily extract text and tables.
MIT License
6.57k stars 659 forks source link

Add `.annots` and `.hyperlinks`, replacing .annos #241

Closed jsvine closed 4 years ago

jsvine commented 4 years ago

.annos was non-functional, based on a misunderstanding of how Annotation objects were represented in the PDF object. This PR also shifts language from "annos" to "annots" to mirror pdfminer's nomenclature.

codecov[bot] commented 4 years ago

Codecov Report

Merging #241 into stable will increase coverage by 0.45%. The diff coverage is 96.55%.

Impacted file tree graph

@@            Coverage Diff             @@
##           stable     #241      +/-   ##
==========================================
+ Coverage   83.66%   84.12%   +0.45%     
==========================================
  Files           9        9              
  Lines        1090     1115      +25     
==========================================
+ Hits          912      938      +26     
+ Misses        178      177       -1     
Impacted Files Coverage Δ
pdfplumber/container.py 100.00% <ø> (+3.70%) :arrow_up:
pdfplumber/utils.py 93.11% <75.00%> (-0.27%) :arrow_down:
pdfplumber/page.py 92.98% <100.00%> (+0.67%) :arrow_up:
pdfplumber/pdf.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update c4156d6...aa03961. Read the comment docs.