mirror of
https://github.com/jsvine/pdfplumber.git
synced 2026-08-29 08:34:23 +08:00
b44f2dc3bc
@ Added - Access to `curve` points. (E.g., `page.curves[0]["points"]`.) - Ability for `.draw_line` to draw `curve` points. @ Changed - Disaggregated "min_words_vertical" (default: 3) and "min_words_horizontal" (default: 1), removing "text_word_threshold". - Internally, made `utils.decimalize` a bit more robust; now throws errors on non-decimalizable items. - Now explicitly ignoring some (obscure) `pdfminer` object attributes. - Raw input for `.draw_line` from a bounding box to `((x, y), (x, y))`, for consistency with `curve["points"]` and with `Pillow`'s underlying method. @ Fixed - Fixed typo bug when `.rect_edges` is called before `.edges`
2.7 KiB
2.7 KiB
Change Log
All notable changes to this project will be documented in this file. Currently goes back to v0.4.3.
The format is based on Keep a Changelog.
[0.5.2] — 2017-02-27
Added
- Access to
curvepoints. (E.g.,page.curves[0]["points"].) - Ability for
.draw_lineto drawcurvepoints.
Changed
- Disaggregated "min_words_vertical" (default: 3) and "min_words_horizontal" (default: 1), removing "text_word_threshold".
- Internally, made
utils.decimalizea bit more robust; now throws errors on non-decimalizable items. - Now explicitly ignoring some (obscure)
pdfminerobject attributes. - Raw input for
.draw_linefrom a bounding box to((x, y), (x, y)), for consistency withcurve["points"]and withPillow's underlying method.
Fixed
- Fixed typo bug when
.rect_edgesis called before.edges
[0.5.1] — 2017-02-26
Added
- Quick-draw
PageImagemethods:.draw_vline,.draw_vlines,.draw_hline, and.draw_hlines. - Boolean parameter
keep_blank_charsfor.extract_words(...)andTableFindersettings.
Changed
- Increased default
text_toleranceandintersection_toleranceTableFinder values from 1 to 3.
Fixed
- Properly handle conversion of PDFs with transparency to
pillowimages. - Properly handle
pandasDataFrames as inputs to multi-draw commands (e.g.,PageImage.draw_rects(...)).
[0.5.0] - 2017-02-25
Added
- Visual debugging features, via
Page.to_image(...)andPageImage. (Introduceswandandpillowas package requirements.) - More powerful options for extracting data from tables. See changes below.
Changed
- Entirely overhaul the table-extraction methods. Now based on Anssi Nurminen's master's thesis.
- Disentangle
.cropfrom.intersects_bboxand.within_bbox. - Change default
x_toleranceandy_tolerancefor word extraction from5to3
Fixed
- Fix bug stemming from non-decimalized page heights. [h/t @jsfenfen]
[0.4.6] - 2017-01-26
Added
- Provide access to
Page.page_number
Changed
- Use
.page_numberinstead of.page_idas primary identifier. [h/t @jsfenfen] - Change default
x_toleranceandy_tolerancefor word extraction from0to5
Fixed
- Provide proper support for rotated pages
[0.4.5] - 2016-12-09
Fixed
- Fix bug stemming from when metadata includes a PostScript literal. [h/t @boblannon]
[0.4.4] - Mistakenly skipped
Whoops.
[0.4.3] - 2016-04-12
Changed
- When extracting table cells, use chars' midpoints instead of top-points.
Fixed
- Fix find_gutters — should ignore
" "chars