14
0

Accepting request 952834 from home:cges30901

Update to v1.19.5

OBS-URL: https://build.opensuse.org/request/show/952834
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=37
This commit is contained in:
2022-02-09 00:31:08 +00:00
committed by Git OBS Bridge
parent 5da8b3ec4a
commit da7b196dd0
4 changed files with 52 additions and 22 deletions

View File

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

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

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

View File

@@ -1,48 +1,76 @@
-------------------------------------------------------------------
Sun Feb 6 14:02:23 UTC 2022 - Hsiu-Ming Chang <cges30901@gmail.com>
- Update to v1.19.5
* Fixed #1518. A limited “fix”: in some cases, rectangles and
quadrupels were not correctly encoded to support re-drawing by
Shape.
* Fixed #1521. This had the same ultimate reason behind issue
#1510.
* Fixed #1513. Some Optional Content functions did not support
non-ASCII characters.
* Fixed #1510. Support more soft-mask image subtypes.
* Fixed #1507. Immunize against items in the outlines chain,
that are "null" objects.
* Fixed re-opened #1417. (“too many open files”). This was due
to insufficient calls to MuPDFs fz_drop_document(). This also
fixes #1550.
* Fixed several undocumented issues in relation to incorrectly
setting the text span origin point_like.
* Fixed undocumented error computing the character bbox in
method Page.get_texttrace() when text is flipped (as opposed to
just rotated).
* Added items to the dictionary returned by image_properties():
orientation and transform report the natural image orientation
(EXIF data).
* Added method Document.xref_copy(). It will make a given target
PDF object an exact copy of a source object.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jan 10 12:52:19 UTC 2022 - Hsiu-Ming Chang <cges30901@gmail.com> Mon Jan 10 12:52:19 UTC 2022 - Hsiu-Ming Chang <cges30901@gmail.com>
- Update to v1.19.4 - Update to v1.19.4
* Fixed #1505. Immunize against circular outline items. * Fixed #1505. Immunize against circular outline items.
* Fixed #1484. Correct CropBox coordinates are now returned in * Fixed #1484. Correct CropBox coordinates are now returned in
all situations. all situations.
* Fixed #1479. * Fixed #1479.
* Fixed #1474. TextPage objects are now properly deleted again. * Fixed #1474. TextPage objects are now properly deleted again.
* Added Page methods and attributes for PDF /ArtBox, /BleedBox, * Added Page methods and attributes for PDF /ArtBox, /BleedBox,
/TrimBox. /TrimBox.
* Added global attribute TESSDATA_PREFIX for easy checking of OCR * Added global attribute TESSDATA_PREFIX for easy checking of OCR
support. support.
* Changed Document.xref_set_key() such that dictionary keys will * Changed Document.xref_set_key() such that dictionary keys will
physically be removed if set to value "null". physically be removed if set to value "null".
* Changed Document.extract_font() to optionally return a * Changed Document.extract_font() to optionally return a
dictionary (instead of a tuple). dictionary (instead of a tuple).
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Dec 17 13:03:20 UTC 2021 - Hsiu-Ming Chang <cges30901@gmail.com> Fri Dec 17 13:03:20 UTC 2021 - Hsiu-Ming Chang <cges30901@gmail.com>
- Update to v1.19.3 - Update to v1.19.3
* Fixed #1351. Reverted code that introduced the memory growth * Fixed #1351. Reverted code that introduced the memory growth
in v1.18.15. in v1.18.15.
* Fixed #1417. Developped circumvention for growth of open file * Fixed #1417. Developped circumvention for growth of open file
handles using Document.insert_pdf(). handles using Document.insert_pdf().
* Fixed #1418. Developped circumvention for memory growth using * Fixed #1418. Developped circumvention for memory growth using
Document.insert_pdf(). Document.insert_pdf().
* Fixed #1430. Developped circumvention for mass pixmap * Fixed #1430. Developped circumvention for mass pixmap
generations of document pages. generations of document pages.
* Fixed #1433. Solves a bbox error for some Type 3 font in * Fixed #1433. Solves a bbox error for some Type 3 font in
PyMuPDF text processing. PyMuPDF text processing.
* Added Pixmap.color_topusage() to determine the share of the * Added Pixmap.color_topusage() to determine the share of the
most frequently used color. Solves #1397. most frequently used color. Solves #1397.
* Added Pixmap.warp() which makes a new pixmap from a given * Added Pixmap.warp() which makes a new pixmap from a given
arbitrary convex quad inside the pixmap. arbitrary convex quad inside the pixmap.
* Added Annot.irt_xref and Annot.set_irt_xref() to inquire or * Added Annot.irt_xref and Annot.set_irt_xref() to inquire or
set the /IRT (“In Responde To”) property of an annotation. set the /IRT (“In Responde To”) property of an annotation.
Implements #1450. Implements #1450.
* Added Rect.torect() and IRect.torect() which compute a matrix * Added Rect.torect() and IRect.torect() which compute a matrix
that transforms to a given other rectangle. that transforms to a given other rectangle.
* Changed Pixmap.color_count() to also return the count of each * Changed Pixmap.color_count() to also return the count of each
color. color.
* Changed Page.get_texttrace() to also return correct span and * Changed Page.get_texttrace() to also return correct span and
character bboxes if span["dir"] != (1, 0). character bboxes if span["dir"] != (1, 0).
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Nov 22 10:33:01 UTC 2021 - Hsiu-Ming Chang <cges30901@gmail.com> Mon Nov 22 10:33:01 UTC 2021 - Hsiu-Ming Chang <cges30901@gmail.com>
@@ -95,7 +123,9 @@ Mon Nov 22 10:33:01 UTC 2021 - Hsiu-Ming Chang <cges30901@gmail.com>
* Changed terminology and meaning of important geometry concepts: * Changed terminology and meaning of important geometry concepts:
Rectangles are now characterized as finite, valid or empty, while Rectangles are now characterized as finite, valid or empty, while
the definitions of these terms have also changed. Rectangles the definitions of these terms have also changed. Rectangles
specifically are now thought of being “open”: not all corners and sides are considered part of the retangle. Please do read the Rect section for details. specifically are now thought of being “open”: not all corners
and sides are considered part of the retangle. Please do read
the Rect section for details.
* Added new parameter “no_new_id” to `Document.save()` / * Added new parameter “no_new_id” to `Document.save()` /
`Document.tobytes()` methods. Use it to suppress updating the `Document.tobytes()` methods. Use it to suppress updating the
second item of the document /ID which in PDF indicates that the second item of the document /ID which in PDF indicates that the

View File

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