- Update to version 1.21.1:
Bug fixes:
* Fixed#2110: Fully embedded font is extracted only partially if it occupies more than one object
* Fixed#2094: Rectangle Detection Logic
* Fixed#2088: Destination point not set for named links in toc
* Fixed#2087: Image with Filter “[/FlateDecode/JPXDecode]” not extracted
* Fixed#2086: Document.save() owner_pw & user_pw has buffer overflow bug
* Fixed#2076: Segfault in fitz.py
* Fixed#2057: Document.save garbage parameter not working in PyMuPDF 1.21.0
* Fixed#2051: Missing DPI Parameter
* Fixed#2048: Invalid size of TextPage and bbox with newest version 1.21.0
* Fixed#2045: SystemError: <built-in function Page_get_texttrace> returned a result with an error set
* Fixed#2039: 1.21.0 fails to build against system libmupdf
* Fixed#2036: Archive::Archive defined twice
Other
* Swallow “&zoom=nan” in link uri strings.
* Add new Page utility methods Page.replace_image() and Page.delete_image().
Documentation:
#2040: Added note about test failure with non-default build of MuPDF, to tests/README.md.
#2037: In docs/installation.rst, mention incompatibility with chocolatey.org on Windows.
#2061: Fixed description of Annot.file_info.
#2065: Show how to insert internal PDF link.
Improved description of building from source without an sdist.
Added information about running tests.
#2084: Fixed broken link to PyMuPDF-Utilities.
OBS-URL: https://build.opensuse.org/request/show/1056252
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=53
- Update to version 1.21.0
* This release uses MuPDF-1.21.0.
New feature: Stories.
Added wheels for Python-3.11.
* Bug fixes:
Fixed#1701: Broken custom image insertion.
Fixed#1854: Document.delete_pages() declines keyword arguments.
Fixed#1868: Access Violation Error at page.apply_redactions().
Fixed#1909: Adding text with fontname=”Helvetica” can silently fail.
Fixed#1913: draw_rect(): does not respect width if color is not specified.
Fixed#1917: subset_fonts(): make it possible to silence the stdout.
Fixed#1936: Rectangle detection can be incorrect producing wrong output.
Fixed#1945: Segmentation fault when saving with clean=True.
Fixed#1965: pdfocr_save() Hard Crash.
Fixed#1971: Segmentation fault when using get_drawings().
Fixed#1946: block_no and block_type switched in get_text() docs.
Fixed#2013: AttributeError: ‘Widget’ object has no attribute ‘_annot’ in delete
widget.
* Misc changes to core code:
Fixed various compiler warnings and a sequence-point bug.
Added support for Memento builds.
Fixed leaks detected by Memento in test suite.
Fixed handling of exceptions in set_name() and set_rect().
Allow build with latest MuPDF, for regular testing of PyMuPDF master.
Cope with new MuPDF exceptions when setting rect for some Annot types.
Reduced cosmetic differences between MuPDF’s config.h and PyMuPDF’s _config.h.
Cope with various changes to MuPDF API.
* Other:
Fixed various broken links and typos in docs.
Mention install of swig-python on MacOS for #875.
OBS-URL: https://build.opensuse.org/request/show/1039381
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=51
* Fixed#1620. The TextPage created by Page.get_textpage() will
now be freed correctly (removed memory leak).
* Fixed#1601. Document open errors should now be more concise
and easier to interpret. In the course of this, two
PyMuPDF-specific Python exceptions have been added:
EmptyFileError – raised when trying to create a Document
(fitz.open()) from an empty file or zero-length memory.
FileDataError – raised when MuPDF encounters irrecoverable
document structure issues.
* Added Page.load_widget() given a PDF field’s xref.
* Added Dictionary pdfcolor which provide the about 500 colors
defined as PDF color values with the lower case color name as
key.
* Added algebra functionality to the Quad class. These objects
can now also be added and subtracted among themselves, and be
multiplied by numbers and matrices.
* Added new constants defining the default text extraction flags
for more comfortable handling. Their naming convention is like
TEXTFLAGS_WORDS for page.get_text("words"). See Text Extraction
Flags Defaults.
* Changed Page.annots() and Page.widgets() to detect and prevent
reloading the page (illegally) inside the iterator loops via
Document.reload_page(). Doing this brings down the interpretor.
Documented clean ways to do annotation and widget mass updates
within properly designed loops.
* Changed several internal utility functions to become
standalone (“SWIG inline”) as opposed to be part of the Tools
class. This, among other things, increases the performance of
geometry object creation.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=41
* 4th bugfix release over 1.17, which provided these highlights:
**Added** extended language support for annotations and widgets: a mixture of
Latin, Greece, Russian, Chinese, Japanese and Korean characters can now be
used in 'FreeText' annotations and text widgets. No special arrangement is
required to use it.
* Faster page access is implemented for documents supporting a "chapter"
structure. This applies to EPUB documents currently. This comes with several
new :ref:`Document` methods and changes for :meth:`Document.loadPage` and the
"indexed" page access *doc[n]*: In addition to specifying a page number as
before, a tuple *(chaper, pno)* can be specified to identify the desired
page.
* **Changed:** Improved support of redaction annotations: images overlapped by
redactions are **permanantly modified** by erasing the overlap areas. Also
links are removed if overlapped by redactions. This is now fully in sync with
PDF specifications.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=26
- Update to 1.16.14
* Added JavaScript support to PDF form fields
* Added a new form field method, which resets the field value to its default.
* Added :meth:`Page.setMediaBox` for changing the physical PDF page size.
* Added method which returns a list of Form XObjects of the page.
* Added advanced graphics features to control the anti-aliasing values
* Added :meth:`Document.scrub` which removes potentially sensitive data from a PDF.
* Changed text marker annotations to accept parameters beyond just
quadrilaterals such that now text lines between two given points can be marked.
* Added :meth:`Annot.setBlendMode` to set the annotation's blend mode.
OBS-URL: https://build.opensuse.org/request/show/788939
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=24