From 21110a491436d09363bd143b346dd88657f3f5b638b4a8b4922c66dcead02387 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 10 Mar 2022 10:39:51 +0000 Subject: [PATCH] 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 --- PyMuPDF-1.19.5.tar.gz | 3 --- PyMuPDF-1.19.6.tar.gz | 3 +++ python-PyMuPDF.changes | 38 ++++++++++++++++++++++++++++++++++++++ python-PyMuPDF.spec | 2 +- 4 files changed, 42 insertions(+), 4 deletions(-) delete mode 100644 PyMuPDF-1.19.5.tar.gz create mode 100644 PyMuPDF-1.19.6.tar.gz diff --git a/PyMuPDF-1.19.5.tar.gz b/PyMuPDF-1.19.5.tar.gz deleted file mode 100644 index b6c908a..0000000 --- a/PyMuPDF-1.19.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:393c9b9cb2669a8691a017b0fdb9ae0ecf3a4a66f2a5cea37d0aaa1a290a55a5 -size 2266228 diff --git a/PyMuPDF-1.19.6.tar.gz b/PyMuPDF-1.19.6.tar.gz new file mode 100644 index 0000000..d8c102f --- /dev/null +++ b/PyMuPDF-1.19.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ef3d13e27f1585d776f6a2597f113aabd28d36b648b983a72850b21c5399ab08 +size 2270248 diff --git a/python-PyMuPDF.changes b/python-PyMuPDF.changes index 2d756a9..52f282e 100644 --- a/python-PyMuPDF.changes +++ b/python-PyMuPDF.changes @@ -1,3 +1,41 @@ +------------------------------------------------------------------- +Sun Mar 6 12:27:52 UTC 2022 - Hsiu-Ming Chang + +- 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 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. + * 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 diff --git a/python-PyMuPDF.spec b/python-PyMuPDF.spec index 6eb41dd..71296a6 100644 --- a/python-PyMuPDF.spec +++ b/python-PyMuPDF.spec @@ -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