MuPDF 1.22.0 Documentation1.3 Validating your installation From the command line you should now have the following MuPDF commands available: • mupdf-gl A handy viewer UI. • muraster Can be used to convert PDF pages to raster obtained by the main thread and sent // from main to rendering thread. This contains the drawing // commands (text, images, etc.) for the page that should be // rendered. fz_display_list *list; // The area each page. bbox = fz_bound_page(ctx, page); // Create a display list that will hold the drawing // commands for the page. Once we have the display list // this can safely be used on any other thread. list0 码力 | 175 页 | 698.87 KB | 8 月前3
MuPDF 1.23.0 Documentation1.3 Validating your installation From the command line you should now have the following MuPDF commands available: • mupdf-gl A handy viewer UI. • muraster Can be used to convert PDF pages to raster obtained by the main thread and sent // from main to rendering thread. This contains the drawing // commands (text, images, etc.) for the page that should be // rendered. fz_display_list *list; // The area each page. bbox = fz_bound_page(ctx, page); // Create a display list that will hold the drawing // commands for the page. Once we have the display list // this can safely be used on any other thread. list0 码力 | 245 页 | 817.74 KB | 8 月前3
MuPDF 1.25.0 Documentation1.3 Validating your installation From the command line you should now have the following MuPDF commands available: • mupdf-gl A handy viewer UI. • muraster Can be used to convert PDF pages to raster obtained by the main thread and sent // from main to rendering thread. This contains the drawing // commands (text, images, etc.) for the page that should be // rendered. fz_display_list *list; // The area each page. bbox = fz_bound_page(ctx, page); // Create a display list that will hold the drawing // commands for the page. Once we have the display list // this can safely be used on any other thread. list0 码力 | 259 页 | 1.11 MB | 8 月前3
MuPDF 1.24.0 Documentation1.3 Validating your installation From the command line you should now have the following MuPDF commands available: • mupdf-gl A handy viewer UI. • muraster Can be used to convert PDF pages to raster obtained by the main thread and sent // from main to rendering thread. This contains the drawing // commands (text, images, etc.) for the page that should be // rendered. fz_display_list *list; // The area each page. bbox = fz_bound_page(ctx, page); // Create a display list that will hold the drawing // commands for the page. Once we have the display list // this can safely be used on any other thread. list0 码力 | 249 页 | 830.15 KB | 8 月前3
PyMuPDF 1.24.2 DocumentationPyMuPDF Documentation, Release 1.24.2 13.1 How to Extract Drawings • New in v1.18.0 Drawing commands (vector graphics) issued by a page can be extracted as a list of dictionaries. Interestingly, this you can use it for XPS, EPUB and others as well. Page method, Page.get_drawings() accesses draw commands and converts them into a list of Python dictionaries. Each dictionary – called a “path” – represents 'items' list # ------------------------------------ for item in path["items"]: # these are the draw commands if item[0] == "l": # line shape.draw_line(item[1], item[2]) elif item[0] == "re": # rectangle0 码力 | 565 页 | 6.84 MB | 1 年前3
PyMuPDF 1.12.2 documentationinsertText() insert text lines Shape.insertTextbox() insert text into a rectangle Shape.contents draw commands since last finish() Shape.doc stores the page’s document Shape.height stores the page’s height even-odd rule. commit(overlay = True) Update the page’s /Contents with the accumulated drawing commands. If a Shape is not committed, the page will not be changed. The method must be preceeded with at documentation » Low Level Functions and Classes » DisplayList DisplayList is a list containing drawing commands (text, images, etc.). The intent is two-fold: 1. as a caching-mechanism to reduce parsing of a0 码力 | 387 页 | 2.70 MB | 1 年前3
共 6 条
- 1













