documentation
.HELP!
PyMuPDF Documentation
Classes
PyMuPDF
previous page
next page
Navigation
index
next
|
previous
|
PyMuPDF 1.12.2 documentation
»
Classes
Annot
Colorspace
Document
Identity
IRect
Link
linkDest
Matrix
Outline
Page
Pixmap
Point
Shape
Rect
Navigation
index
next
|
previous
|
PyMuPDF 1.12.2 documentation
»
previous page
start
next page
Menu
Homepage
Table of contents
PyMuPDF 1.12.2 documentation
Introduction
Note on the Name fitz
License
Covered Version
Installation
Option 1: Install from Sources
Step 1: Download PyMuPDF
Step 2: Download and Generate MuPDF
Step 3: Build / Setup PyMuPDF
Option 2: Install from Binaries
Step 1: Download Binary
Step 2: Install PyMuPDF
MD5 Checksums
Targeting Parallel Python Installations
Using UPX
Tutorial
Importing the Bindings
Opening a Document
Some Document Methods and Attributes
Accessing Meta Data
Working with Outlines
Working with Pages
Inspecting the Links of a Page
Rendering a Page
Saving the Page Image in a File
Displaying the Image in Dialog Managers
Extracting Text
Searching Text
PDF Maintenance
Modifying, Creating, Re-arranging and Deleting Pages
Joining and Splitting PDF Documents
Saving
Closing
Example: Dynamically Cleaning up Corrupt PDF Documents
Further Reading
Classes
Annot
Example
Colorspace
Document
Remarks on select()
select() Examples
setMetadata() Example
setToC() Example
insertPDF() Examples
Other Examples
Identity
IRect
Remark
IRect Algebra
Examples
Link
linkDest
Matrix
Remarks 1
Remarks 2
Matrix Algebra
Examples
Shifting
Flipping
Shearing
Rotating
Outline
Page
Description of getLinks() Entries
Notes on Supporting Links
Reading (pertains to method getLinks() and the firstLink property chain)
Writing
Homologous Methods of Document and Page
Pixmap
Supported Input Image Types
Details on Saving Images with writeImage()
Pixmap Example Code Snippets
Point
Remark
Point Algebra
Examples
Shape
Usage
Notes
Examples
Common Parameters
Rect
Remark
Rect Algebra
Examples
Operator Algebra for Geometry Objects
General Remarks
Unary Operations
Binary Operations
Low Level Functions and Classes
Functions
Device
DisplayList
TextPage
Structure of TextPage.extractJSON()
Page Dictionary
Block Dictionaries
Line Dictionary
Span Dictionary
Full Document Output in JSON Format
Working together: DisplayList and TextPage
Create a DisplayList
Generate Pixmap
Perform Text Search
Extract Text
Further Performance improvements
Pixmap
TextPage
Constants and Enumerations
Constants
Font File Extensions
Text Alignment
Preserve Text Flags
Link Destination Kinds
Link Destination Flags
Annotation Types
Annotation Flags
Annotation Line End Styles
Color Database
Function getColor()
Printing the Color Database
Appendix 1: Performance
Part 1: Parsing
Part 2: Text Extraction
Part 3: Image Rendering
Appendix 2: Details on Text Extraction
General structure of a TextPage
Plain Text
HTML
Controlling Quality of HTML Output
JSON
XML
XHTML
Further Remarks
Performance
Appendix 3: Considerations on Embedded Files
General
MuPDF Support
PyMuPDF Support
Appendix 4: Assorted Technical Information
PDF Base 14 Fonts
Adobe PDF Reference 1.7
Ensuring Consistency of Important Objects in PyMuPDF
Design of Method Page.showPDFpage()
Purpose and Capabilities
Technical Implementation
Change Logs
Changes in Version 1.12.2
Changes in Version 1.12.1
Changes in Version 1.12.0
Changes in Version 1.11.2
Changes in Version 1.11.1
Changes in Version 1.11.0
Changes in Version 1.10.0
MuPDF v1.10 Impact
Other Changes compared to Version 1.9.3
Changes in Version 1.9.3
Changes in Version 1.9.2
Changes in Version 1.9.1
Error Messages
Get in touch
Submit feedback about this site to:
[email protected]