14
0

Accepting request 960494 from home:cges30901

Update to v1.19.6

OBS-URL: https://build.opensuse.org/request/show/960494
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=38
This commit is contained in:
2022-03-10 10:39:51 +00:00
committed by Git OBS Bridge
parent da7b196dd0
commit 21110a4914
4 changed files with 42 additions and 4 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:393c9b9cb2669a8691a017b0fdb9ae0ecf3a4a66f2a5cea37d0aaa1a290a55a5
size 2266228

3
PyMuPDF-1.19.6.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ef3d13e27f1585d776f6a2597f113aabd28d36b648b983a72850b21c5399ab08
size 2270248

View File

@@ -1,3 +1,41 @@
-------------------------------------------------------------------
Sun Mar 6 12:27:52 UTC 2022 - Hsiu-Ming Chang <cges30901@gmail.com>
- Update to v1.19.6
* 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 fields 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.
* Changed Document.update_stream() to always accept stream
updates - whether or not the dictionary object behind the xref
already is a stream. Thus the former new parameter is now
ignored and will be removed in v1.20.0.
-------------------------------------------------------------------
Sun Feb 6 14:02:23 UTC 2022 - Hsiu-Ming Chang <cges30901@gmail.com>

View File

@@ -21,7 +21,7 @@
%define skip_python2 1
%define pypi_name PyMuPDF
Name: python-%{pypi_name}
Version: 1.19.5
Version: 1.19.6
Release: 0
Summary: Python binding for MuPDF, a PDF and XPS viewer
License: AGPL-3.0-only