* 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