Repository navigation
PyMuPDF-2.2 released #5306
julian-smith-artifex-com
started this conversation in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Wheels for Windows, Linux and MacOS, and the sdist, are available on
https://pypi.org and can be installed in the usual way, for example:
Changes in version 2.2
Fixed issues:
Table.extract()moves the decimal point out of numbers ("0.74" comes back as "0 74", newline, ".") — regression from 1.28.2 #5198JM_new_lineart_device_Device.__init__omits call parentheses onuse_virtual_*_text, disabling SWIG director text callbacks #5238Document.set_toc_item()crashes on point-like tuple/list coordinates (AttributeError) and invertsdest_dict['to']via in-place mutation #5239Document.delete_pages()raisesValueError: bad page number(s)on negative page numbers passed as two positional arguments #5240Table.to_pandas()permanently mutatesTable.header.namesin-place, corrupting column names and downstream exports #5241New features:
Other:
Various small correctness fixes (from Abelardo Ramirez):
message into part of the boolean expression, disabling the empty-name
check for binary content).
attachment's /FS dict has neither /UF nor /F.
method itself, which broke every call that actually sets a language.
raising TypeError.
message actually includes the format name.
FzMatrix() on the float-conversion failure path.
"misspelled option falls back to text" behavior unreachable.
IndexError when no label rule applies to the given page number.
zero-width glyph bboxes.
workers instead of plain list indices, which silently processed the
wrong pages for any non-contiguous/non-zero-based
pageslist.matching the rect from page.get_drawings()) instead of c["y0"]/c["y1"]
(PDF-native bottom-up space), fixing table detection for frames drawn
as filled rectangles.
get_text: fail on unrecognized option instead of silently defaulting (from Abelardo Ramirez).
apply_pages(): Fix keyword forwarding in single-process page extraction (from JackyHsu-X).
Fixed sysinstall of mupdf with PYMUPDF_MUPDF_LIB (from Ben Moss).
Fix Document.convert_to_pdf() for page ranges that do not start at page 0 (from Athlex).
Some fixes for windows-x32.
Preserve line breaks and hyphens in clean table Markdown (from crunz-ai).
Fix table header boldness checks to use page coordinates (from crunz-ai).
Continue letter page labels with AA, BB, ... after Z, as the PDF spec says (from RavSinghChandan).
Added :meth:
Page.search_for_fuzzyfor edit-distance substring searches,returning matched text, distance and quads without additional dependencies.
This discussion was created from the release PyMuPDF-2.2 released.
All reactions