You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary: PyMuPDF is a Python binding for the PDF rendering library MuPDF
11
11
Description:
12
-
Release date: December 20, 2020
12
+
Release date: January 7, 2021
13
13
14
14
Authors
15
15
=======
@@ -20,7 +20,7 @@ Description:
20
20
Introduction
21
21
============
22
22
23
-
This is **version 1.18.5 of PyMuPDF**, a Python binding for `MuPDF <http://mupdf.com/>`_ - "a lightweight PDF and XPS viewer".
23
+
This is **version 1.18.6 of PyMuPDF**, a Python binding for `MuPDF <http://mupdf.com/>`_ - "a lightweight PDF and XPS viewer".
24
24
25
25
MuPDF can access files in PDF, XPS, OpenXPS, epub, comic and fiction book formats, and it is known for both, its top performance and high rendering quality.
@@ -15,7 +15,7 @@ On **[PyPI](https://pypi.org/project/PyMuPDF)** since August 2016: [ - "a lightweight PDF, XPS, and E-book viewer".
18
+
This is **version 1.18.6 of PyMuPDF**, a Python binding with support for [MuPDF 1.18.*](http://mupdf.com/) - "a lightweight PDF, XPS, and E-book viewer".
19
19
20
20
MuPDF can access files in PDF, XPS, OpenXPS, CBZ, EPUB and FB2 (e-books) formats, and it is known for its top performance and high rendering quality.
Creates a pixmap from the annotation as it appears on the page in untransformed coordinates. The pixmap's :ref:`IRect` equals *Annot.rect.irect* (see below).
74
+
Creates a pixmap from the annotation as it appears on the page in untransformed coordinates. The pixmap's :ref:`IRect` equals *Annot.rect.irect* (see below). **All parameters are keyword only.**
75
75
76
76
:arg matrix_like matrix: a matrix to be used for image creation. Default is the *fitz.Identity* matrix.
77
77
@@ -98,13 +98,13 @@ There is a parent-child relationship between an annotation and its page. If the
Retrieves the content of the annotation in a variety of formats -- much like the same method for :ref:`Page`.. This currently only delivers relevant data for annotation types 'FreeText' and 'Stamp'. Other types return an empty string (or equivalent objects).
106
106
107
-
:arg str opt: the desired format - one of the following values. Please note that this method works exactly like the same-named method of :ref:`Page`.
107
+
:arg str opt:(positional only) the desired format - one of the following values. Please note that this method works exactly like the same-named method of :ref:`Page`.
108
108
109
109
* "text" -- :meth:`TextPage.extractTEXT`, default
110
110
* "blocks" -- :meth:`TextPage.extractBLOCKS`
@@ -116,8 +116,8 @@ There is a parent-child relationship between an annotation and its page. If the
116
116
* "json" -- :meth:`TextPage.extractJSON`
117
117
* "rawdict" -- :meth:`TextPage.extractRAWDICT`
118
118
119
-
:arg rect-like clip: restrict the extraction to this area. Should hardly ever be required, defaults to :attr:`Annot.rect`.
120
-
:arg int flags: control the amount of data returned. Defaults to simple text extraction.
119
+
:arg rect-like clip:(keyword only) restrict the extraction to this area. Should hardly ever be required, defaults to :attr:`Annot.rect`.
120
+
:arg int flags:(keyword only) control the amount of data returned. Defaults to simple text extraction.
121
121
122
122
.. method:: get_textbox(rect)
123
123
@@ -147,7 +147,7 @@ There is a parent-child relationship between an annotation and its page. If the
147
147
148
148
.. note::
149
149
150
-
* While only 'FreeText', 'Line', 'PolyLine', and 'Polygon' annotations can have these properties, (Py-) MuPDF does not support line ends for 'FreeText', because the call-out variant for these is not supported.
150
+
* While 'FreeText', 'Line', 'PolyLine', and 'Polygon' annotations can have these properties, (Py-) MuPDF does not support line ends for 'FreeText', because the call-out variant of it is not supported.
151
151
* *(Changed in v1.16.16)* Some symbols have an interior area (diamonds, circles, squares, etc.). By default, these areas are filled with the fill color of the annotation. If this is *None*, then white is chosen. The *fill_color* argument of :meth:`Annot.update` can now be used to override this and give line end symbols their own fill color.
152
152
153
153
:arg int start: The symbol number for the first point.
Copy file name to clipboardExpand all lines: docs/app4.rst
+1-1
Original file line number
Diff line number
Diff line change
@@ -167,7 +167,7 @@ RuntimeError: orphaned object: parent is None
167
167
<... omitted lines ...>
168
168
RuntimeError: orphaned object: parent is None
169
169
170
-
.. note:: Objects outside the above relationship are not included in this mechanism. If you e.g. created a table of contents by *toc = doc.getToC()*, and later close or change the document, then this cannot and does not change variable *toc* in any way. It is your responsibility to refresh such variables as required.
170
+
.. note:: Objects outside the above relationship are not included in this mechanism. If you e.g. created a table of contents by *toc = doc.get_toc()*, and later close or change the document, then this cannot and does not change variable *toc* in any way. It is your responsibility to refresh such variables as required.
Copy file name to clipboardExpand all lines: docs/changes.rst
+20-1
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,25 @@
1
1
Change Logs
2
2
===============
3
3
4
+
Changes in Version 1.18.6
5
+
-------------------------
6
+
* **Fixed** issue `#793 <https://github.com/pymupdf/PyMuPDF/issues/793>`_. Invalid document metadata previously prevented opening some documents at all. This error has been removed.
7
+
* **Fixed** issue `#792 <https://github.com/pymupdf/PyMuPDF/issues/792>`_. Text search and text extraction will make no rectangle containment checks at all if the default ``clip=None`` is used.
* **Added** an option to set the desired line height for text boxes. Implements `#804 <https://github.com/pymupdf/PyMuPDF/issues/804>`_.
12
+
* **Changed** text position retrieval to better cope with Tesseract's glyphless font. Implements `#803 <https://github.com/pymupdf/PyMuPDF/issues/803>`_.
13
+
* **Added** an option to choose the prefix of new annotations, fields and links for providing unique annotation ids. Implements request `#807 <https://github.com/pymupdf/PyMuPDF/issues/807>`_.
14
+
* **Added** getting and setting color and text properties for Table of Contents items for PDFs. Implements `#779 <https://github.com/pymupdf/PyMuPDF/issues/779>`_.
15
+
* **Added** PDF page label handling: :meth:`Page.get_label()` returns the page label, :meth:`Document.get_page_numbers` return all page numbers having a specified label, and :meth:`Document.set_page_labels` adds or updates a PDF's page label definition.
16
+
17
+
18
+
19
+
.. note::
20
+
This version introduces **Python type hinting**. The goal is to provide each parameter and the return value of all functions and methods with type information. This still is work in progress although the majority of functions has already been handled.
21
+
22
+
4
23
Changes in Version 1.18.5
5
24
-------------------------
6
25
Apart from several fixes, this version also focusses on several minor, but important feature improvements. Among the latter is a more precise computation of proper line heights and insertion points for writing / inserting text. As opposed to using font-agnostic constants, these values are now taken from the font's properties.
@@ -696,7 +715,7 @@ Changes in Version 1.12.0
696
715
--------------------------
697
716
This version is based on and requires MuPDF v1.12.0. The new MuPDF version contains quite a number of changes -- most of them around text extraction. Some of the changes impact the programmer's API.
698
717
699
-
* :meth:`Outline.saveText` and :meth:`Outline.saveXML` have been deleted without replacement. You probably haven't used them much anyway. But if you are looking for a replacement: the output of :meth:`Document.getToC` can easily be used to produce something equivalent.
718
+
* :meth:`Outline.saveText` and :meth:`Outline.saveXML` have been deleted without replacement. You probably haven't used them much anyway. But if you are looking for a replacement: the output of :meth:`Document.get_toc` can easily be used to produce something equivalent.
0 commit comments