-
Notifications
You must be signed in to change notification settings - Fork 558
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
441 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Metadata-Version: 1.1 | ||
Name: PyMuPDF | ||
Version: 1.16.0 | ||
Version: 1.16.1 | ||
Author: Ruikai Liu | ||
Author-email: [email protected] | ||
Maintainer: Jorj X. McKie | ||
|
@@ -9,7 +9,7 @@ Home-page: https://github.com/pymupdf/PyMuPDF | |
Download-url: https://github.com/pymupdf/PyMuPDF | ||
Summary: PyMuPDF is a Python binding for the PDF rendering library MuPDF | ||
Description: | ||
Release date: August 31, 2019 | ||
Release date: September 4, 2019 | ||
|
||
Authors | ||
======= | ||
|
@@ -20,7 +20,7 @@ Description: | |
Introduction | ||
============ | ||
|
||
This is **version 1.16.0 of PyMuPDF**, a Python binding for `MuPDF <http://mupdf.com/>`_ - "a lightweight PDF and XPS viewer". | ||
This is **version 1.16.1 of PyMuPDF**, a Python binding for `MuPDF <http://mupdf.com/>`_ - "a lightweight PDF and XPS viewer". | ||
|
||
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. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,54 @@ | ||
# PyMuPDF 1.16.0 | ||
# PyMuPDF 1.16.1 | ||
|
||
![logo](https://github.com/pymupdf/PyMuPDF/blob/master/demo/pymupdf.jpg) | ||
|
||
Release date: August 31, 2019 | ||
Release date: September 4, 2019 | ||
|
||
**Travis-CI:** [![Build Status](https://travis-ci.org/JorjMcKie/py-mupdf.svg?branch=master)](https://travis-ci.org/JorjMcKie/py-mupdf) | ||
|
||
On **[PyPI](https://pypi.org/project/PyMuPDF)** since August 2016: [![](https://pepy.tech/badge/pymupdf)](https://pepy.tech/project/pymupdf) | ||
|
||
# Authors | ||
* [Ruikai Liu](mailto:[email protected]) | ||
* [Jorj X. McKie](mailto:[email protected]) | ||
* [Ruikai Liu](mailto:[email protected]) | ||
|
||
# Introduction | ||
|
||
This is **version 1.16.0 of PyMuPDF (formerly python-fitz)**, a Python binding with support for [MuPDF 1.16.x](http://mupdf.com/) - "a lightweight PDF, XPS, and E-book viewer". | ||
This is **version 1.16.1 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". | ||
|
||
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. | ||
|
||
With PyMuPDF you therefore can access files with extensions like ".pdf", ".xps", ".oxps", ".cbz", ".fb2" or ".epub" from your Python scripts. | ||
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. | ||
|
||
|
||
# Usage and Documentation | ||
For all supported document types you can | ||
* decrypt the document | ||
* access meta information, links and bookmarks | ||
* render pages in raster formats (PNG and some others), or the vector format SVG | ||
* search for text | ||
* extract text or images | ||
* convert to other formats: PDF, (X) HTML, XML, text | ||
|
||
> 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. | ||
**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). | ||
|
||
* Images and fonts can be extracted or inserted. | ||
* Embedded files are fully supported. | ||
* PDFs can be reformatted to support double-sided printing, posterizing, applying logos or watermarks | ||
* Password protection is fully supported: decryption, encryption, encryption method selection, permmission level and user / owner password setting. | ||
* Low-level PDF structures can be accessed and modified. | ||
|
||
|
||
See the [change log](https://pymupdf.readthedocs.io/en/latest/changes) and [usage recipes](https://pymupdf.readthedocs.io/en/latest/faq). | ||
Have a look at the basic [demos](https://github.com/pymupdf/PyMuPDF/tree/master/demo), the [examples](https://github.com/pymupdf/PyMuPDF/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. | ||
|
||
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. | ||
|
||
* You can view it online at [Read the Docs](https://pymupdf.readthedocs.io/). For **best quality downloads** you should however use the following links. | ||
* zipped [HTML](https://github.com/pymupdf/PyMuPDF/tree/master/doc/html.zip) | ||
* [Windows CHM](https://github.com/pymupdf/PyMuPDF-optional-material/tree/master/doc/PyMuPDF.chm) | ||
* [PDF](https://github.com/pymupdf/PyMuPDF/blob/master/doc/PyMuPDF.pdf) | ||
|
||
# Installation | ||
|
||
|
@@ -41,10 +69,11 @@ To do this, you must download and generate MuPDF. This process depends very much | |
|
||
- Now MuPDF can be generated. | ||
|
||
* Since PyMuPDF v1.14.17, the sources provided in this repository **no longer contain** the interface files ``fitz.py`` and ``fitz.wrap.c`` - they are generated **"on the fly"** by ``setup.py`` using the interface generator [SWIG](http://www.swig.org/). So you need SWIG being installed on your system. Please refer to issue #312 for a background. | ||
* Since PyMuPDF v1.14.17, the sources provided in this repository **no longer contain** the interface files ``fitz.py`` and ``fitz.wrap.c`` - they are generated **"on the fly"** by ``setup.py`` using the interface generator [SWIG](http://www.swig.org/). So you need SWIG being installed on your system. Please refer to issue #312 for some background. | ||
- PyMuPDF wheels have been generated using **SWIG v4.0.1**. | ||
|
||
|
||
* If you do **not (want to) use SWIG** for generating PyMuPDF, please download the **sources from PyPI** - they continue to contain the interface files. | ||
- Side note: those files have been generated using **SWIG v4.0.0**, which implements improvements regarding security and also generates a simpler ``fitz.py``. Our wheels are based on this SWIG version, too. | ||
* If you do **not (want to) use SWIG** for generating PyMuPDF, please download the **sources from PyPI** - they continue to contain the generated interface files, and installation should work like any other generation of Python extensions for your system. | ||
|
||
Once this is done, adjust directories in ``setup.py`` and run ``python setup.py install``. | ||
|
||
|
@@ -61,33 +90,8 @@ Then you might need to ``export ARCHFLAGS='-arch x86_64'``, since ``libmupdf.a`` | |
Finally, please double check ``setup.py`` before building. Update ``include_dirs`` and ``library_dirs`` if necessary. | ||
|
||
## MS Windows | ||
|
||
If you are looking to make your own binary, consult this [Wiki page](https://github.com/pymupdf/PyMuPDF/wiki/Windows-Binaries-Generation). It explains how to use Visual Studio for generating MuPDF in quite some detail. | ||
|
||
# Usage and Documentation | ||
For all document types you can render pages in raster (PNG) or vector (SVG) formats, extract text and images, and access meta information, links, annotations and bookmarks, as well as decrypt the document. | ||
|
||
For PDF files, most of these objects can also be created, modified or deleted. Plus you can rotate, re-arrange, duplicate, create, delete and split or join **pages** and you can **join or split PDF** documents. | ||
|
||
Specifically for **PDF files**, PyMuPDF also provides update access to **low-level structure** data, supports handling of embedded files and modification of **page contents** (like inserting images, fonts, text, annotations and drawings). | ||
|
||
Other features include embedding vector images (SVG, PDF) such as logos or watermarks, "posterizing" a PDF or creating "booklet" and "4-up" versions. | ||
|
||
You can also create and update **Form PDFs** and **form fields** with support for text, checkbox, listbox and combobox widgets. | ||
|
||
Starting with version 1.16.0, PDF password protection is **fully supported**: passwords, encryption methods and permission levels can be set, changed or removed. | ||
|
||
To some degree, PyMuPDF can also be used as an [image converter](https://github.com/pymupdf/PyMuPDF/wiki/How-to-Convert-Images): it can read a broad 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 many cases. But interfacing with e.g. PIL/Pillow for image input and output is easy as well. | ||
|
||
Have a look at the basic [demos](https://github.com/pymupdf/PyMuPDF/tree/master/demo), the [examples](https://github.com/pymupdf/PyMuPDF/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. | ||
|
||
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. | ||
|
||
* You can view it online at [Read the Docs](https://pymupdf.readthedocs.io/). For **best quality downloads** you should however use the following links. | ||
* zipped [HTML](https://github.com/pymupdf/PyMuPDF/tree/master/doc/html.zip) | ||
* [Windows CHM](https://github.com/pymupdf/PyMuPDF-optional-material/tree/master/doc/PyMuPDF.chm) | ||
* [PDF](https://github.com/pymupdf/PyMuPDF/blob/master/doc/PyMuPDF.pdf) | ||
|
||
# Earlier Versions | ||
Earlier versions are available in the [releases](https://github.com/pymupdf/PyMuPDF/releases) directory. | ||
|
||
|
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.