Upgrading pdfplumber 0.10 to 0.11
Breaking0.10.4 → 0.11.10Breaking2Deprecated1New11Changed10Fixed17Other2
BreakingUpgrade verdict
2 breaking changes.
In plain terms
- Two pattern-related attributes on objects are gone, so code reading them will break.
- The direction field on words now uses text labels instead of numbers, so code checking for 1 or -1 must be updated.
- Two older direction options are being phased out in favor of the new direction parameters.
Must act 3 items need code or config changes
Moves pdfminer-six 20221105.0.0 → 20260107.0.0. Your build may pick other versions.
What you must change
Breaking2
Removes stroking_pattern and non_stroking_pattern object attributes due to pdfminer.six changes.
stroking_patternnon_stroking_patternChanges word["direction"] values from {1,-1} to {"ltr","rtl","ttb","btt"}.
word["direction"]Deprecations to plan for
Deprecated1
Deprecates vertical_ttb and horizontal_ltr in favor of char_dir and char_dir_rotated.
vertical_ttbhorizontal_ltrchar_dirchar_dir_rotated