1d1602e0c5
* port page label code from pdfannots * add tests and clean up * more cleanup; harden against non-conforming input * one more test * update CHANGELOG * cleanup & respond to review feedback (incomplete) * Refactor implementation of get_page_labels() into a NumberTree and PageLabels class. * PageLabels *is* a NumberTree and should always behave like one. This justifies inheriting its data and behavior. And it simplifies the code a bit more. * fix type errors and cleanup slightly * fix mypy errors (including tweaking code to avoid problematic dynamic types) * hoist dict_value from NumberTree (where it may not be a dict) to PageLabels (where it must be) * avoid repeated warnings by calling _parse() recursively, and checking sortedness only at the end Co-authored-by: Pieter Marsman <pietermarsman@gmail.com> |
||
---|---|---|
.. | ||
2b.pdf | ||
XIPLAYER0.jb2 | ||
issue-00352-asw-oct96-p41.pdf | ||
issue-00352-hash-twos-complement.pdf | ||
issue-00369-excel.pdf | ||
issue-625-identity-cmap.pdf | ||
issue_566_test_1.pdf | ||
issue_566_test_2.pdf | ||
matplotlib.pdf | ||
pagelabels.pdf | ||
pdf-with-jbig2.pdf | ||
pr-00530-ml-lines.pdf |