PyMuPDF 1.24.2 Documentation
document page is Page.get_pixmap(). A pixmap represents a raster image, so you must decide on its quality (i.e. resolution) at creation time. It cannot be changed later. PyMuPDF also offers a way to create (e-books)␣ ˓→formats,
and it is known for its top performance and rendering quality.""" # Make a PDF page for demo purposes root = os.path.abspath( f"{__file__}/..") doc = fitz 0 R >> >> /MediaBox [ 0 0 612 792 ] /Parent 1301 0 R /Rotate 90 >> Be aware, that no semantic checks whatsoever will take place here: if the PDF has no xref 9999, it won’t be detected at this point0 码力 | 565 页 | 6.84 MB | 1 年前3PyMuPDF 1.12.2 documentation
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 Check this out yourself and compare the various free PDF-viewers. In terms of speed and rendering quality SumatraPDF ranges at the top (apart from MuPDF’s own standalone viewer) - since it has changed its In this case, please check your download for any problems. If you downloaded a wheel, integrity checks are done by pip. Targeting Parallel Python Installations Setup scripts for ZIP binary install support0 码力 | 387 页 | 2.70 MB | 1 年前3MuPDF 1.23.0 Documentation
accessibility Can copy for accessibility assemble Can manage document pages print-hq Can print high-quality 6.6. Document 93 MuPDF Documentation, Release 1.23.0 var canEdit = document.hasPermission("edit"); saveAsPNG("fileName.png"); saveAsJPEG(fileName, quality) Save the Pixmap as a JPEG. Only works for Gray, RGB and CMYK images. Arguments • fileName – String. • quality – Int. pixmap.saveAsJPEG("fileName.jpg" Returns a buffer of the Pixmap as a PAM. Returns Buffer. var buffer = pixmap.asPAM(); asJPEG(quality) Returns a buffer of the Pixmap as a JPEG. Note, if the Pixmap has an alpha channel then an exception0 码力 | 245 页 | 817.74 KB | 7 月前3MuPDF 1.24.0 Documentation
accessibility Can copy for accessibility assemble Can manage document pages print-hq Can print high-quality var canEdit = document.hasPermission("edit"); getMetaData(key) Return various meta data information saveAsPNG("fileName.png"); saveAsJPEG(fileName, quality) Save the Pixmap as a JPEG. Only works for Gray, RGB and CMYK images. Arguments • fileName – String. • quality – Int. pixmap.saveAsJPEG("fileName.jpg" Returns a buffer of the Pixmap as a PAM. Returns Buffer. var buffer = pixmap.asPAM(); asJPEG(quality) Returns a buffer of the Pixmap as a JPEG. Note, if the Pixmap has an alpha channel then an exception0 码力 | 249 页 | 830.15 KB | 7 月前3MuPDF 1.25.0 Documentation
accessibility Can copy for accessibility assemble Can manage document pages print-hq Can print high-quality var canEdit = document.hasPermission("edit"); getMetaData(key) Return various meta data information saveAsPNG("fileName.png"); saveAsJPEG(fileName, quality) Save the Pixmap as a JPEG. Only works for Gray, RGB and CMYK images. Arguments • fileName – String. • quality – Int. 7.12. Pixmap 113 MuPDF Documentation Returns a buffer of the Pixmap as a PAM. Returns Buffer. var buffer = pixmap.asPAM(); asJPEG(quality) Returns a buffer of the Pixmap as a JPEG. Note, if the Pixmap has an alpha channel then an exception0 码力 | 259 页 | 1.11 MB | 7 月前3MuPDF 1.22.0 Documentation
Integer. validateChangeHistory() Check the history of the document, return the last version that checks out OK. Returns 0 if the entire history is OK, 1 if the next to last version is OK, but the last Arguments • font – String. • size – Integer. • color – The color value. hasInteriorColor() Checks whether the annotation has support for an interior color. Returns Boolean. getInteriorColor() setInteriorColor(color) Sets the annotation interior color. Arguments • color – The color value. hasAuthor() Checks whether the annotation has an author. Returns Boolean. 100 Chapter 3. MuPDF on the command line0 码力 | 175 页 | 698.87 KB | 7 月前3
共 6 条
- 1