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 document renderer and toolkit MuPDF
12
12
Description:
13
-
Release date: July 10, 2021
13
+
Release date: August 8, 2021
14
14
15
15
Authors
16
16
=======
@@ -21,7 +21,7 @@ Description:
21
21
Introduction
22
22
============
23
23
24
-
PyMuPDF (current version 1.18.15) is a Python binding with support for `MuPDF <http://mupdf.com/>`_ (current version 1.18.*), a lightweight PDF, XPS, and E-book viewer, renderer and toolkit, which is maintained and developed by Artifex Software, Inc.
24
+
PyMuPDF (current version 1.18.16) is a Python binding with support for `MuPDF <http://mupdf.com/>`_ (current version 1.18.*), a lightweight PDF, XPS, and E-book viewer, renderer and toolkit, which is maintained and developed by Artifex Software, Inc.
25
25
26
26
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.
On **[PyPI](https://pypi.org/project/PyMuPDF)** since August 2016: [](https://pepy.tech/project/pymupdf)
8
-
9
-
# Authors
10
-
*[Jorj X. McKie](mailto:jorj.x.mckie@outlook.de)
11
-
*[Ruikai Liu](mailto:lrk700@gmail.com)
8
+
9
+
# Author
10
+
[Jorj X. McKie](mailto:jorj.x.mckie@outlook.de), based on original code by [Ruikai Liu](mailto:lrk700@gmail.com).
12
11
13
12
# Introduction
14
13
15
-
PyMuPDF (current version 1.18.15) is a Python binding with support for [MuPDF](https://mupdf.com/) (current version 1.18.*), a lightweight PDF, XPS, and E-book viewer, renderer, and toolkit, which is maintained and developed by Artifex Software, Inc.
14
+
PyMuPDF (current version 1.18.16) is a Python binding with support for [MuPDF](https://mupdf.com/) (current version 1.18.*), a lightweight PDF, XPS, and E-book viewer, renderer, and toolkit, which is maintained and developed by Artifex Software, Inc.
16
15
17
16
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.
18
17
@@ -36,19 +35,20 @@ For **PDF documents,** there exists a plethora of additional features: they can
36
35
* Images and fonts can be extracted or inserted.
37
36
> You may want to have a look at [this](https://github.com/pymupdf/PyMuPDF-Utilities/blob/master/examples/image-maintenance.py) cool GUI example script, which lets you **_insert, delete, replace_** or **_re-position_** images under your visual control.
38
37
39
-
> Since v1.18.8 there is a new experimental `Document` method `subset_fonts()`, which automatically builds subsets based on the usage of all eligible fonts in the document. Especially for new documents, this can lead to significant file size reductions. The method was developed in cooperation with our user @cuteufo - again thanks a lot for the contribution.
38
+
> Since v1.18.8 there is a `Document` method `subset_fonts()`, which automatically builds subsets based on the usage of all eligible fonts in the document. Especially for new documents, this can lead to significant file size reductions. The method was developed in cooperation with our user @cuteufo - again thanks a lot for the contribution.
40
39
* Embedded files are fully supported.
41
40
* PDFs can be reformatted to support double-sided printing, posterizing, applying logos or watermarks
42
41
* Password protection is fully supported: decryption, encryption, encryption method selection, permmission level and user / owner password setting.
43
42
* Support of the **PDF Optional Content** concept for images, text and drawings.
44
43
* Low-level PDF structures can be accessed and modified.
45
-
*PyMuPDF can also be used as a **module in the command line**using ``"python -m fitz ..."``. This is a versatile utility, which we will further develop going forward. It currently supports PDF document
44
+
***Command line module**``"python -m fitz ..."``. A versatile utility with the following features
46
45
47
46
-**encryption / decryption / optimization**
48
-
-creating**sub-documents**
47
+
-creation of**sub-documents**
49
48
- document **joining**
50
49
-**image / font extraction**
51
-
- full support of **embedded files**.
50
+
- full support of **embedded files**
51
+
-**_layout-preserving text extraction_** (all documents)
52
52
53
53
54
54
Have a look at the basic [demos](https://github.com/pymupdf/PyMuPDF-Utilities/tree/master/demo), the [examples](https://github.com/pymupdf/PyMuPDF-Utilities/tree/master/examples) (which contain complete, working programs), and the **recipes** section of our [Wiki](https://github.com/pymupdf/PyMuPDF/wiki) sidebar, which contains more than a dozen of guides in How-To-style.
Copy file name to clipboardExpand all lines: changes.rst
+20-3Lines changed: 20 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,36 @@
1
1
Change Logs
2
2
===============
3
3
4
+
Changes in Version 1.18.16
5
+
---------------------------
6
+
* **Fixed** issue `#1184 <https://github.com/pymupdf/PyMuPDF/issues/1184>`_. Existing PDF widget fonts in a PDF are now accepted (i.e. not forcedly changed to a Base-14 font).
7
+
8
+
* **Fixed** issue `#1154 <https://github.com/pymupdf/PyMuPDF/issues/1154>`_. Text search hits should now be correct when ``clip`` is specified.
* **Added** :attr:`Link.flags` and :meth:`Link.set_flags` to the :ref:`Link` class. Implements enhancement requests `#1187 <https://github.com/pymupdf/PyMuPDF/issues/1187>`_.
15
+
16
+
* **Added** option to *simulate* :meth:`TextWriter.fill_textbox` output for predicting the number of lines, that a given text would occupy in the textbox.
17
+
18
+
* **Added** text output support as subcommand `gettext` to the ``fitz`` CLI module. Most importantly, original **physical text layout** reproduction is now supported.
19
+
20
+
4
21
Changes in Version 1.18.15
5
22
---------------------------
6
23
* **Fixed** issue `#1088 <https://github.com/pymupdf/PyMuPDF/issues/1088>`_. Removing an annotation's fill color should now work again both ways, using the ``fill_color=[]`` argument in :meth:`Annot.update` as well as ``fill=[]`` in :meth:`Annot.set_colors`.
7
24
8
25
* **Fixed** issue `#1081 <https://github.com/pymupdf/PyMuPDF/issues/1081>`_. :meth:`Document.subset_fonts`: fixed an error which created wrong character widths for some fonts.
9
26
10
-
* **Fixed** issue `#1078 <https://github.com/pymupdf/PyMuPDF/issues/1078>`_. :meth:`Page.get_text` and other methods related to text extraction: changed the default value of the :ref:`TextPage` ``flags`` parameter. All whitespace and ligatures are now preserved.
27
+
* **Fixed** issue `#1078 <https://github.com/pymupdf/PyMuPDF/issues/1078>`_. :meth:`Page.get_text` and other methods related to text extraction: changed the default value of the :ref:`TextPage` ``flags`` parameter. All whitespace and :data:`ligatures` are now preserved.
11
28
12
29
* **Fixed** issue `#1085 <https://github.com/pymupdf/PyMuPDF/issues/1085>`_. The old *snake_cased* alias of ``fitz.detTextlength`` is now defined correctly.
13
30
14
-
* **Changed** :meth:`Document.subset_fonts` will now prefix fonts that were successfully subsetted with an appropriate six letter uppercase tag as prescribed by the PDF specification.
31
+
* **Changed** :meth:`Document.subset_fonts` will now correctly prefix font subsets with an appropriate six letter uppercase tag, complying with the PDF specification.
15
32
16
-
* **Added** new method :meth:`Widget.button_states` which returns the possible values that a button-type field can have when being set "on" or "off".
33
+
* **Added** new method :meth:`Widget.button_states` which returns the possible values that a button-type field can have when being set to "on" or "off".
17
34
18
35
* **Added** support of text with **Small Capital** letters to the :ref:`Font` and :ref:`TextWriter` classes. This is reflected by an additional bool parameter ``small_caps`` in various of their methods.
0 commit comments