Skip to content

Commit 0d8bd69

Browse files
authored
Merge branch 'master' into master
2 parents 7f7eff6 + f8968fa commit 0d8bd69

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+12036
-4983
lines changed

PKG-INFO

+4-13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Metadata-Version: 1.1
22
Name: PyMuPDF
3-
Version: 1.16.18
3+
Version: 1.17.6
44
Author: Ruikai Liu
55
Author-email: [email protected]
66
Maintainer: Jorj X. McKie
@@ -9,7 +9,7 @@ Home-page: https://github.com/pymupdf/PyMuPDF
99
Download-url: https://github.com/pymupdf/PyMuPDF
1010
Summary: PyMuPDF is a Python binding for the PDF rendering library MuPDF
1111
Description:
12-
Release date: April 22, 2020
12+
Release date: August 26, 2020
1313

1414
Authors
1515
=======
@@ -20,7 +20,7 @@ Description:
2020
Introduction
2121
============
2222

23-
This is **version 1.16.18 of PyMuPDF**, a Python binding for `MuPDF <http://mupdf.com/>`_ - "a lightweight PDF and XPS viewer".
23+
This is **version 1.17.6 of PyMuPDF**, a Python binding for `MuPDF <http://mupdf.com/>`_ - "a lightweight PDF and XPS viewer".
2424

2525
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.
2626

@@ -52,13 +52,9 @@ Description:
5252

5353
Written using **Sphinx**, documentation is available here:
5454

55-
* View it online at `Read The Docs <https://pymupdf.readthedocs.io/en/latest/>`_. For **best quality downloads**, use the following links.
56-
57-
* `HTML <https://github.com/pymupdf/PyMuPDF/tree/master/doc/html.zip>`_
58-
55+
* `Read The Docs <https://pymupdf.readthedocs.io/en/latest/>`_.
5956
* `Windows CHM <https://github.com/JorjMcKie/PyMuPDF-optional-material/tree/master/doc/PyMuPDF.chm>`_
6057

61-
* `PDF <https://github.com/pymupdf/PyMuPDF/tree/master/doc/pymupdf.pdf>`_
6258

6359

6460
Classifier: Development Status :: 5 - Production/Stable
@@ -72,9 +68,4 @@ Classifier: Operating System :: POSIX :: Linux
7268
Classifier: Programming Language :: C
7369
Classifier: Programming Language :: Python :: 2.7
7470
Classifier: Programming Language :: Python :: 3
75-
Classifier: Programming Language :: Python :: 3.4
76-
Classifier: Programming Language :: Python :: 3.5
77-
Classifier: Programming Language :: Python :: 3.6
78-
Classifier: Programming Language :: Python :: 3.7
79-
Classifier: Programming Language :: Python :: 3.8
8071
Classifier: Topic :: Utilities

README.md

+15-14
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# PyMuPDF 1.16.18
1+
# PyMuPDF 1.17.6
22

33
![logo](https://github.com/pymupdf/PyMuPDF/blob/master/demo/pymupdf.jpg)
44

5-
Release date: April 22, 2020
5+
Release date: August 26, 2020
66

77
**Travis-CI:** [![Build Status](https://travis-ci.org/JorjMcKie/py-mupdf.svg?branch=master)](https://travis-ci.org/JorjMcKie/py-mupdf)
88

@@ -14,15 +14,15 @@ On **[PyPI](https://pypi.org/project/PyMuPDF)** since August 2016: [![](https://
1414

1515
# Introduction
1616

17-
This is **version 1.16.18 of PyMuPDF (formerly python-fitz)**, a Python binding with support for [MuPDF 1.16.*](http://mupdf.com/) - "a lightweight PDF, XPS, and E-book viewer".
17+
This is **version 1.17.6 of PyMuPDF**, a Python binding with support for [MuPDF 1.17.*](http://mupdf.com/) - "a lightweight PDF, XPS, and E-book viewer".
1818

1919
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.
2020

21-
With PyMuPDF you can access files with extensions like ".pdf", ".xps", ".oxps", ".cbz", ".fb2" or ".epub". About 10 popular image formats are also supported via the document interface.
21+
With PyMuPDF you can access files with extensions like ".pdf", ".xps", ".oxps", ".cbz", ".fb2" or ".epub". In addition, about 10 popular image formats can also be opened and handled like documents.
2222

2323

2424
# Usage and Documentation
25-
For all supported document types (i.e. including images) you can
25+
For all supported document types (i.e. **_including images_**) you can
2626
* decrypt the document
2727
* access meta information, links and bookmarks
2828
* render pages in raster formats (PNG and some others), or the vector format SVG
@@ -32,14 +32,17 @@ For all supported document types (i.e. including images) you can
3232

3333
> To some degree, PyMuPDF can therefore be used as an [image converter](https://github.com/pymupdf/PyMuPDF/wiki/How-to-Convert-Images): it can read a range of input formats and can produce **Portable Network Graphics (PNG)**, **Portable Anymaps** (**PNM**, etc.), **Portable Arbitrary Maps (PAM)**, **Adobe Postscript** and **Adobe Photoshop** documents, making the use of other graphics packages obselete in these cases. But interfacing with e.g. PIL/Pillow for image input and output is easy as well.
3434
35-
**PDF files** can be created, joined or split up. Pages can be inserted, deleted, re-arranged or modified in many ways (including annotations and form fields).
35+
**PDF documents** can be created, joined or split up. Pages can be inserted, deleted, re-arranged or modified in many ways (including annotations and form fields).
3636

37+
* For PDFs, text may not only be extracted, but can also be **_inserted_** in many ways.
38+
> Starting with v1.17.6, a handy script becomes available, allowing **_selective font replacement_** for existing documents, see [this](https://github.com/pymupdf/PyMuPDF-Utilities/tree/master/font-replacement) repository.
3739
* Images and fonts can be extracted or inserted.
40+
> You may want to have a look at [this](https://github.com/pymupdf/PyMuPDF-Utilities/blob/master/examples/image-maintenance.py) cool new GUI example script, which lets you insert, delete, replace or re-position images under your visual control.
3841
* Embedded files are fully supported.
3942
* PDFs can be reformatted to support double-sided printing, posterizing, applying logos or watermarks
4043
* Password protection is fully supported: decryption, encryption, encryption method selection, permmission level and user / owner password setting.
4144
* Low-level PDF structures can be accessed and modified.
42-
* 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 over time. It currently supports PDF document
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
4346

4447
- **encryption / decryption / optimization**
4548
- creating **sub-documents**
@@ -52,19 +55,15 @@ Have a look at the basic [demos](https://github.com/pymupdf/PyMuPDF-Utilities/tr
5255

5356
Our **documentation**, written using Sphinx, is available in various formats from the following sources. It currently is a combination of a reference guide and a user manual. For a **quick start** look at the [tutorial](https://pymupdf.readthedocs.io/en/latest/tutorial/) and the [recipes](https://pymupdf.readthedocs.io/en/latest/faq/) chapters.
5457

55-
* You can view it online at [Read the Docs](https://pymupdf.readthedocs.io/). This site also provides download options for zipped HTML and PDF.
58+
* You can view it online at [Read the Docs](https://readthedocs.org/projects/pymupdf/). This site also provides download options for zipped HTML and PDF.
5659
* Find a Windows help file [here](https://github.com/pymupdf/PyMuPDF-optional-material/tree/master/doc/PyMuPDF.chm).
5760

5861

5962
# Installation
6063

61-
For the major **Windows** and (thanks to our user **@jbarlow83**!) **Mac OSX** or **Linux** versions we offer wheels in the [download section of PyPI](https://pypi.org/project/PyMuPDF/#files).
64+
For the major **Windows** and (thanks to our user **@jbarlow83**!) **Mac OSX** or **Linux** versions we offer wheels in the [download section of PyPI](https://pypi.org/project/PyMuPDF/#files). This includes Python 2.7 and version Python 3.5 through 3.8.
6265

63-
> As of November 2019 is supported for Python versions 2.7, 3.5, 3.6, 3.7 and 3.8 only. **Support for Python 3.4 has been dropped.**
64-
65-
For other Python versions or operating systems you need to generate PyMuPDF yourself as follows (and of course you can choose to do so for a wheel-supported platform, too).
66-
67-
This should work for all platforms which support Python and MuPDF. You need the development version of Python.
66+
For other Python versions or operating systems you need to generate PyMuPDF yourself as follows. This should work for all platforms which support Python and MuPDF. In any case you need the development version of Python.
6867

6968
To do this, you must download and generate MuPDF. This process depends very much on your system. For most platforms, the MuPDF source contains prepared procedures for achieving this. Please observe the following general steps:
7069

@@ -74,6 +73,8 @@ To do this, you must download and generate MuPDF. This process depends very much
7473

7574
* This repo's `fitz` folder contains one or more files whose names start with a single underscore `"_"`. These files contain configuration data and hotfixes. Each one must be copy-renamed to its correct target location **inside the MuPDF source** that you have downloaded, **before you generate MuPDF**. Currently, these files are:
7675
- fitz configuration file `_config.h` copy-replace to: `mupdf/include/mupdf/fitz/config.h`. It contains configuration data like e.g. which fonts to support.
76+
- font support file `_pdf-font-add.c` copy-replace to: `mupdf/source/pdf/pdf-font-add.c`.
77+
- fax compression file `_encode-fax.c` copy-replace to: `mupdf/source/fitz/encode-fax.c`.
7778

7879
- Now MuPDF can be generated.
7980

0 commit comments

Comments
 (0)