PyMuPDF-1.22.0 released #2343
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.
-
PyMuPDF-1.22.0 has been released.
Wheels for Windows, Linux and MacOS, and the sdist, are available on pypi.org and can be installed in the usual way, for example:
Changes in version 1.22.0 (2023-04-14)
This release uses
MuPDF-1.22.0.Behavioural changes:
they were included only if they were entirely contained within the clip
rect.
Bug fixes:
page.add_highlight_annot(start=pointa, stop=pointb)not workingColorspaceused inPixmappixmap.tint_with#2179: Incorrect documentation forpixmap.tint_with()apply_redactions()move pdf text to right after redactionPage.delete_image()| object has no attributeis_imageStory.element_positions()if callback function prototype is wrongAnnot.get_text("words")- doesn't return the first line of wordsOther:
Add key "/AS (Yes)" to the underlying annot object of a selected button form field.
Remove unused
Documentmethodshas_xref_streams()andhas_old_style_xrefs()as MuPDF equivalents have been removed.Add new
Documentmethods and properties for getting/setting/PageMode,/PageLayoutand/MarkInfo.New
Documentpropertyversion_count, which contains the number ofincremental saves plus one.
New
Documentpropertyis_fast_webaccesswhich tells whether thedocument is linearized.
DocumentWriteris now a context manager.Add support for
PixmapJPEG output.Add support for drawing rectangles with rounded corners.
get_drawings(): added optionalextendedarg.Fixed issue where trace devices' state was not being initialised
correctly; data returned from things like
fitz.Page.get_texttrace()might be slightly altered, e.g.
linewidthvalues.Output warning to
stderrif it looks like we are being used withcurrent directory containing an invalid
fitz/directory, becausethis can break import of
fitzmodule. For example this happensif one attempts to use
fitzwhen current directory is a PyMuPDFcheckout.
Documentation:
General rework:
Improve
insert_file()documentation.get_bboxlog(): aded optionallayerstoget_bboxlog().Page.get_texttrace(): add new dictionary keylayer, name of Optional Content Group.Mention use of Python venv in installation documentation.
Added missing fix for Document.save garbage parameter not working in PyMuPDF 1.21.0 #2057 to release 1.21.1's changelog.
Fixes many links to the PyMuPDF-Utilities repo scripts.
Avoid duplication of
changes.txtanddocs/changes.rst.Build
pyproject.tomlfile to improve builds using pip etc.This discussion was created from the release PyMuPDF-1.22.0.
Beta Was this translation helpful? Give feedback.
All reactions