Changelog¶
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased]¶
[0.4.0]¶
Added¶
- Added
__len__
and__repr__
functions to the Section class. (#90) - Added flag to
extract_simple_table
andextract_table
functions to remove duplicate header rows. (#89) - You can now specify
element_ordering
when instantiating a PDFDocument. This defaults to the old behaviour or left to right, top to bottom. (#95)
[0.3.0] - 2020-05-14¶
Added¶
- Published to PyPI as py-pdf-parser.
- Documentation is now hosted here. (#71)
- Added new examples to the documentation. (#74)
- Font filtering now caches the elements by font. (#73) (updated in #78)
- Font filtering now caches the elements by font. (#73)
- The visualise tool now draws an outline around each section on the page. (#69) (updated in #80)
Changed¶
- This product is now complete enough for the needs of Optimor Ltd, however
jstockwin
is going to continue development as a personal project. The repository has been moved fromoptimor/py-pdf-parser
tojstockwin/py-pdf-parser
.
[0.2.0] - 2020-04-17¶
Added¶
- It is now possible to specify
font_size_precision
when instantiating a PDFDocument. This is the number of decimal places the font size will be rounded to. (#60) extract_simple_table
now allows extracting tables with gaps, provided there is at least one full row and one full column. This is only the case if you passallow_gaps=True
, otherwise the original logic of raising an exception if there a gap remains. You can optionally pass areference_element
which must be in both a full row and a full column, this defaults to the first (top-left) element. (#57)
Changed¶
- Font sizes are now
float
notint
. Thefont_size_precision
in the additions defaults to 1, and as such all fonts will change to have a single decimal place. To keep the old behaviour, you can passfont_size_precision=0
when instantiating your PDFDocument.