MuPDF 1.22.0 Documentationto render a single page and print the result as a PPM to stdout. To build this example in a source tree and render first page at 100% zoom with no rotation, run: make examples ./build/debug/example document single page, this is just a design decision taken for this example. To build this example in a source tree and render every page as a separate PNG, run: make examples ./build/debug/multi-threaded document MediaBox: [0,0,300,350], Contents: contents, Resources: resources, }) // Insert page object into page tree. var pagetree = pdf.getTrailer().Root.Pages pagetree.Count = 1 pagetree.Kids = [ page ] page.Parent0 码力 | 175 页 | 698.87 KB | 8 月前3
MuPDF 1.23.0 Documentationto render a single page and print the result as a PPM to stdout. To build this example in a source tree and render first page at 100% zoom with no rotation, run: make examples ./build/debug/example document single page, this is just a design decision taken for this example. To build this example in a source tree and render every page as a separate PNG, run: make examples ./build/debug/multi-threaded document MediaBox: [0,0,300,350], Contents: contents, Resources: resources, }) // Insert page object into page tree. var pagetree = pdf.getTrailer().Root.Pages pagetree.Count = 1 pagetree.Kids = [ page ] page.Parent0 码力 | 245 页 | 817.74 KB | 8 月前3
MuPDF 1.24.0 Documentationto render a single page and print the result as a PPM to stdout. To build this example in a source tree and render first page at 100% zoom with no rotation, run: make examples ./build/debug/example document single page, this is just a design decision taken for this example. To build this example in a source tree and render every page as a separate PNG, run: make examples ./build/debug/multi-threaded document MediaBox: [0,0,300,350], Contents: contents, Resources: resources, }) // Insert page object into page tree. var pagetree = pdf.getTrailer().Root.Pages pagetree.Count = 1 pagetree.Kids = [ page ] page.Parent0 码力 | 249 页 | 830.15 KB | 8 月前3
MuPDF 1.25.0 Documentationto render a single page and print the result as a PPM to stdout. To build this example in a source tree and render first page at 100% zoom with no rotation, run: make examples ./build/debug/example document single page, this is just a design decision taken for this example. To build this example in a source tree and render every page as a separate PNG, run: make examples ./build/debug/multi-threaded document MediaBox: [0,0,300,350], Contents: contents, Resources: resources, }) // Insert page object into page tree. var pagetree = pdf.getTrailer().Root.Pages pagetree.Count = 1 pagetree.Kids = [ page ] page.Parent0 码力 | 259 页 | 1.11 MB | 8 月前3
PyMuPDF 1.24.2 Documentationdescribed above. • Enter a Python venv and update pip, as described above. • Get a PyMuPDF source tree: – Clone the PyMuPDF git repository: git clone https://github.com/pymupdf/PyMuPDF.git – Or download MuPDF source tree: • Clone the MuPDF git repository: git clone --recursive https://ghostscript.com:/home/git/mupdf.git • Build PyMuPDF, specifying the location of the local MuPDF tree with the environmental PYMUPDF_SETUP_MUPDF_BUILD=../mupdf pip install . Building for different Python versions in same PyMuPDF tree: • PyMuPDF will build for the version of Python that is being used to run pip. To run pip with a0 码力 | 565 页 | 6.84 MB | 1 年前3
PyMuPDF 1.12.2 documentationModifying, Creating, Re-arranging and Deleting Pages There are several ways to manipulate the page tree of a PDF: Methods Document.deletePage() and Document.deletePageRange() delete pages. Methods Document setToC(toc) PDF only: Replaces the complete current outline tree (table of contents) with a new one. After successful execution, the new outline tree can be accessed as usual via method getToC() or via property of this item and also point to other outline items in “horizontal” or downward direction. The full tree of all outline items for e.g. a conventional table of contents (TOC) can be recovered by following0 码力 | 387 页 | 2.70 MB | 1 年前3
共 6 条
- 1













