Skip to content

Commit 814bb6d

Browse files
committed
upgrade to v1.16.8
1 parent 6f9a8fb commit 814bb6d

File tree

15 files changed

+1283
-264
lines changed

15 files changed

+1283
-264
lines changed

PKG-INFO

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Metadata-Version: 1.1
22
Name: PyMuPDF
3-
Version: 1.16.7
3+
Version: 1.16.8
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: November 10, 2019
12+
Release date: November 20, 2019
1313

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

23-
This is **version 1.16.7 of PyMuPDF**, a Python binding for `MuPDF <http://mupdf.com/>`_ - "a lightweight PDF and XPS viewer".
23+
This is **version 1.16.8 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

README.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# PyMuPDF 1.16.7
1+
# PyMuPDF 1.16.8
22

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

5-
Release date: November 10, 2019
5+
Release date: November 20, 2019
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,21 +14,21 @@ On **[PyPI](https://pypi.org/project/PyMuPDF)** since August 2016: [![](https://
1414

1515
# Introduction
1616

17-
This is **version 1.16.7 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.16.8 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".
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

2121
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.
2222

2323

2424
# Usage and Documentation
25-
For all supported document types you can
25+
For all supported document types (i.e. including images) types 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
2929
* search for text
30-
* extract text or images
31-
* convert to other formats: PDF, (X) HTML, XML, text
30+
* extract text and images
31+
* convert to other formats: PDF, (X)HTML, XML, JSON, text
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
@@ -52,19 +52,21 @@ Our **documentation**, written using Sphinx, is available in various formats fro
5252

5353
# Installation
5454

55-
For all **Windows** and (thanks to our user **@jbarlow83**!) for the major **Mac OSX** and **Linux** versions we offer wheels in the [download section of PyPI](https://pypi.org/project/PyMuPDF/#files).
55+
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).
5656

57-
The platform tag for Mac OSX is `macosx_10_6_intel`.
57+
> The Mac OSX platform tags are `macosx_10_6_intel` (up to Python 3.7) or ``macosx_10_9_x86_64``. For Linux the tag is ``manylinux2010_x86_64``.
5858
59-
The platform tag for Linux is `manylinux1_x86_64`, which makes these wheels usable on Debian, Ubuntu and most other variations.
59+
> As of November 2019 and starting with PyMuPDF v1.16.8, wheel creation is supported for Python 64bit versions 2.7, 3.5, 3.6, 3.7 and 3.8 only. **Support of Python 3.4 has been dropped.**
6060
61-
On other operating systems you need to generate PyMuPDF yourself. And of course you can choose to do so for a wheel-supported platform, too.
61+
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).
62+
63+
This should work for all platforms which support Python and MuPDF. You need the development version of Python.
6264

6365
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:
6466

6567
* Be sure to download the official MuPDF source release from [here](https://mupdf.com/downloads/archive). Do **not use** MuPDF's [GitHub repo](https://github.com/ArtifexSoftware/mupdf). It contains their current **development source**, which is **not compatible** with this PyMuPDF version most of the time.
6668

67-
* The repo's `fitz` folder contains a few files whose names start with an underscore `"_"`. These files contain configuration data and hotfixes. Each one must be copy-renamed to its correct target location of the MuPDF source that you have downloaded, **before you generate MuPDF**. Currently, these files are:
69+
* This repo's `fitz` folder contains one or more files whose names start with an 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:
6870
- 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.
6971

7072
- Now MuPDF can be generated.
@@ -73,7 +75,7 @@ To do this, you must download and generate MuPDF. This process depends very much
7375
- PyMuPDF wheels have been generated using **SWIG v4.0.1**.
7476

7577

76-
* 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.
78+
* If you do **not (want to) use SWIG**, please download the **sources from PyPI** - they continue to contain those generated interface files, and installation should work like any other generation of Python extensions for your system.
7779

7880
Once this is done, adjust directories in ``setup.py`` and run ``python setup.py install``.
7981

demo/demo-lowlevel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def olTraversal(root):
5252
# get the page number, which should start from 0
5353
pn = int(sys.argv[2]) - 1
5454
if pn > doc.pageCount:
55-
raise SystemExit("%s has %d pages only" % (sys.argv[1], doc.pageCount))
55+
sys.exit("%s has %d pages only" % (sys.argv[1], doc.pageCount))
5656

5757
# get the page
5858
page = doc.loadPage(pn)

doc/PyMuPDF.pdf

51 KB
Binary file not shown.

doc/html.zip

38.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)