Skip to content

Commit b49650b

Browse files
committed
upload v1.17.7
1 parent 4c3ec66 commit b49650b

13 files changed

+7311
-186
lines changed

PKG-INFO

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Metadata-Version: 1.1
22
Name: PyMuPDF
3-
Version: 1.17.6
3+
Version: 1.17.7
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: August 26, 2020
12+
Release date: September 15, 2020
1313

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

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

+10-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# PyMuPDF 1.17.6
1+
# PyMuPDF 1.17.7
22

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

5-
Release date: August 26, 2020
5+
Release date: September 15, 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,7 +14,7 @@ On **[PyPI](https://pypi.org/project/PyMuPDF)** since August 2016: [![](https://
1414

1515
# Introduction
1616

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".
17+
This is **version 1.17.7 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

@@ -34,8 +34,6 @@ For all supported document types (i.e. **_including images_**) you can
3434
3535
**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.
3937
* Images and fonts can be extracted or inserted.
4038
> 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.
4139
* Embedded files are fully supported.
@@ -61,11 +59,13 @@ Our **documentation**, written using Sphinx, is available in various formats fro
6159

6260
# Installation
6361

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.
62+
For the major **Windows** and (thanks to our user **@jbarlow83**!) **Mac OSX** or **Linux** versions we provide wheels in the [download section of PyPI](https://pypi.org/project/PyMuPDF/#files). This includes Python 2.7 and versions Python 3.5 through 3.9.
63+
64+
> Starting January 2021, wheels for Python version 2 will no longer be built. You will need to build PyMuPDF for Python 2 from sources as explained below.
6565
6666
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.
6767

68-
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:
68+
Before building PyMuPDF from sources, you must build 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:
6969

7070
* Be sure to download the official MuPDF source release from [here](https://mupdf.com/downloads/archive).
7171

@@ -75,6 +75,9 @@ To do this, you must download and generate MuPDF. This process depends very much
7575
- 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.
7676
- font support file `_pdf-font-add.c` copy-replace to: `mupdf/source/pdf/pdf-font-add.c`.
7777
- fax compression file `_encode-fax.c` copy-replace to: `mupdf/source/fitz/encode-fax.c`.
78+
- CLI subtool `_murun.c` copy-replace to: `mupdf/source/tools/murun.c`.
79+
- PDF page cleaning `_pdf_clean.c` copy-replace to: `mupdf/source/pdf/pdf_clean.c`.
80+
- PDF page header `_pdf_page.h` copy-replace to: `mupdf/include/mupdf/pdf/page.h`.
7881

7982
- Now MuPDF can be generated.
8083

fitz/__init__.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,15 @@
3131
# ------------------------------------------------------------------------------
3232
fitz.open = fitz.Document
3333
fitz.Document.getToC = fitz.utils.getToC
34+
fitz.Document.getTOC = fitz.utils.getToC
35+
fitz.Document.setToC = fitz.utils.setToC
36+
fitz.Document.setTOC = fitz.utils.setToC
37+
fitz.Document.setTOC_item = fitz.utils.setTOC_item
38+
fitz.Document.delTOC_item = fitz.utils.delTOC_item
3439
fitz.Document._do_links = fitz.utils.do_links
3540
fitz.Document.getPagePixmap = fitz.utils.getPagePixmap
3641
fitz.Document.getPageText = fitz.utils.getPageText
3742
fitz.Document.setMetadata = fitz.utils.setMetadata
38-
fitz.Document.setToC = fitz.utils.setToC
3943
fitz.Document.searchPageFor = fitz.utils.searchPageFor
4044
fitz.Document.newPage = fitz.utils.newPage
4145
fitz.Document.insertPage = fitz.utils.insertPage
@@ -60,6 +64,8 @@
6064
fitz.Page.getLinks = fitz.utils.getLinks
6165
fitz.Page.getPixmap = fitz.utils.getPixmap
6266
fitz.Page.getText = fitz.utils.getText
67+
fitz.Page.getTextbox = fitz.utils.getTextbox
68+
fitz.Page.getTextSelection = fitz.utils.getTextSelection
6369
fitz.Page.getTextBlocks = fitz.utils.getTextBlocks
6470
fitz.Page.getTextWords = fitz.utils.getTextWords
6571
fitz.Page.insertImage = fitz.utils.insertImage

0 commit comments

Comments
 (0)