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
-
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 workingColorspace
used inPixmap
pixmap.tint_with
#2179: Incorrect documentation forpixmap.tint_with()
apply_redactions()
move pdf text to right after redactionPage.delete_image()
| object has no attributeis_image
Story.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
Document
methodshas_xref_streams()
andhas_old_style_xrefs()
as MuPDF equivalents have been removed.Add new
Document
methods and properties for getting/setting/PageMode
,/PageLayout
and/MarkInfo
.New
Document
propertyversion_count
, which contains the number ofincremental saves plus one.
New
Document
propertyis_fast_webaccess
which tells whether thedocument is linearized.
DocumentWriter
is now a context manager.Add support for
Pixmap
JPEG output.Add support for drawing rectangles with rounded corners.
get_drawings()
: added optionalextended
arg.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.
linewidth
values.Output warning to
stderr
if it looks like we are being used withcurrent directory containing an invalid
fitz/
directory, becausethis can break import of
fitz
module. For example this happensif one attempts to use
fitz
when current directory is a PyMuPDFcheckout.
Documentation:
General rework:
Improve
insert_file()
documentation.get_bboxlog()
: aded optionallayers
toget_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.txt
anddocs/changes.rst
.Build
pyproject.toml
file 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