 PyMuPDF 1.24.2 Documentationlooking for a complete Tkinter script paging through any supported document, here it is!. It can also zoom into pages, and it runs under Python 2 or 3. It requires the extremely handy PySimpleGUI pure Python Matrix, which lets you zoom, rotate, distort or mirror the outcome. Page.get_pixmap() by default will use the Identity matrix, which does nothing. In the following, we apply a zoom factor of 2 to each dimension resolution for us (and also about 4 times the size): zoom_x = 2.0 # horizontal zoom zoom_y = 2.0 # vertical zoom mat = fitz.Matrix(zoom_x, zoom_y) # zoom factor 2 in each dimension pix = page.get_pixmap(matrix=mat)0 码力 | 565 页 | 6.84 MB | 1 年前3 PyMuPDF 1.24.2 Documentationlooking for a complete Tkinter script paging through any supported document, here it is!. It can also zoom into pages, and it runs under Python 2 or 3. It requires the extremely handy PySimpleGUI pure Python Matrix, which lets you zoom, rotate, distort or mirror the outcome. Page.get_pixmap() by default will use the Identity matrix, which does nothing. In the following, we apply a zoom factor of 2 to each dimension resolution for us (and also about 4 times the size): zoom_x = 2.0 # horizontal zoom zoom_y = 2.0 # vertical zoom mat = fitz.Matrix(zoom_x, zoom_y) # zoom factor 2 in each dimension pix = page.get_pixmap(matrix=mat)0 码力 | 565 页 | 6.84 MB | 1 年前3
 PyMuPDF 1.12.2 documentationinvert() calculate the inverted matrix Matrix.a zoom factor X direction Matrix.b shearing effect Y direction Matrix.c shearing effect X direction Matrix.d zoom factor Y direction Matrix.e horizontal shift shift Matrix.f vertical shift Class API class Matrix __init__(self) __init__(self, zoom-x, zoom-y) __init__(self, shear-x, shear-y, 1) __init__(self, a, b, c, d, e, f) __init__(self, matrix) __init__(self constructors. Without parameters, Matrix(0.0, 0.0, 0.0, 0.0, 0.0, 0.0) will be created. zoom-* and shear-* specify zoom or shear values (float), respectively. matrix specifies another Matrix from which a0 码力 | 387 页 | 2.70 MB | 1 年前3 PyMuPDF 1.12.2 documentationinvert() calculate the inverted matrix Matrix.a zoom factor X direction Matrix.b shearing effect Y direction Matrix.c shearing effect X direction Matrix.d zoom factor Y direction Matrix.e horizontal shift shift Matrix.f vertical shift Class API class Matrix __init__(self) __init__(self, zoom-x, zoom-y) __init__(self, shear-x, shear-y, 1) __init__(self, a, b, c, d, e, f) __init__(self, matrix) __init__(self constructors. Without parameters, Matrix(0.0, 0.0, 0.0, 0.0, 0.0, 0.0) will be created. zoom-* and shear-* specify zoom or shear values (float), respectively. matrix specifies another Matrix from which a0 码力 | 387 页 | 2.70 MB | 1 年前3
 MuPDF 1.22.0 Documentationthe 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.pdf 1 100 0 > page1.ppm To build h> #include MuPDF 1.22.0 Documentationthe 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.pdf 1 100 0 > page1.ppm To build h> #include- #include - int main(int argc, char **argv) { char *input; float zoom, rotate; int page_number, page_count; fz_context *ctx; fz_document *doc; (continues on next page) fz_matrix ctm; int x, y; if (argc < 3) { fprintf(stderr, "usage: example input-file page-number [ zoom [ rotate ]␣ ˓→]\n"); fprintf(stderr, "\tinput-file: path of PDF, XPS, CBZ or EPUB document to␣ 0 码力 | 175 页 | 698.87 KB | 8 月前3
 MuPDF 1.23.0 Documentationthe 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.pdf 1 100 0 > page1.ppm To build h> #include MuPDF 1.23.0 Documentationthe 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.pdf 1 100 0 > page1.ppm To build h> #include- #include - int main(int argc, char **argv) { char *input; float zoom, rotate; int page_number, page_count; fz_context *ctx; fz_document *doc; (continues on next page) fz_matrix ctm; int x, y; if (argc < 3) { fprintf(stderr, "usage: example input-file page-number [ zoom [ rotate ]␣ ˓→]\n"); fprintf(stderr, "\tinput-file: path of PDF, XPS, CBZ or EPUB document to␣ 0 码力 | 245 页 | 817.74 KB | 8 月前3
 MuPDF 1.25.0 Documentationthe 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.pdf 1 100 0 > page1.ppm To build h> #include MuPDF 1.25.0 Documentationthe 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.pdf 1 100 0 > page1.ppm To build h> #include- #include - int main(int argc, char **argv) { char *input; float zoom, rotate; int page_number, page_count; fz_context *ctx; fz_document *doc; (continues on next page) fz_matrix ctm; int x, y; if (argc < 3) { fprintf(stderr, "usage: example input-file page-number [ zoom [ rotate ]␣ ˓→]\n"); fprintf(stderr, "\tinput-file: path of PDF, XPS, CBZ or EPUB document to␣ 0 码力 | 259 页 | 1.11 MB | 8 月前3
 MuPDF 1.24.0 Documentationthe 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.pdf 1 100 0 > page1.ppm To build h> #include MuPDF 1.24.0 Documentationthe 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.pdf 1 100 0 > page1.ppm To build h> #include- #include - int main(int argc, char **argv) { char *input; float zoom, rotate; int page_number, page_count; fz_context *ctx; fz_document *doc; (continues on next page) fz_matrix ctm; int x, y; if (argc < 3) { fprintf(stderr, "usage: example input-file page-number [ zoom [ rotate ]␣ ˓→]\n"); fprintf(stderr, "\tinput-file: path of PDF, XPS, CBZ or EPUB document to␣ 0 码力 | 249 页 | 830.15 KB | 8 月前3
共 6 条
- 1













