PyMuPDF 1.24.2 Documentationoutput for page in doc: # iterate the document pages text = page.get_text().encode("utf8") # get plain text (is in UTF-8) out.write(text) # write text of page out.write(bytes((12,))) # write page delimiter document contains image based text content the use OCR on the page for subsequent text extraction: tp = page.get_textpage_ocr() text = page.get_text(textpage=tp) 15 PyMuPDF Documentation, Release 1.24 API reference • Page.get_text() 5.3 Extract images from a To extract all the images from a file, do the following: import fitz doc = fitz.open("test.pdf") # open a document for page_index in range(len(doc)):0 码力 | 565 页 | 6.84 MB | 1 年前3
MuPDF 1.22.0 Documentationdocs/examples/example.c /* How to use MuPDF to 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 examples ./build/debug/example document.pdf 1 100 0 > page1.ppm To build from installed sources, and render the same document, run: gcc -I/usr/local/include -o example \ /usr/local/share/doc/mupdf/examples/example document.pdf 1 100 0 > page1.ppm */ #include#include #include int main(int argc, char **argv) { char *input; float zoom, rotate; int page_number, page_count; fz_context 0 码力 | 175 页 | 698.87 KB | 8 月前3
MuPDF 1.23.0 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 6.7 Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . docs/examples/example.c /* How to use MuPDF to 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 examples ./build/debug/example document.pdf 1 100 0 > page1.ppm To build from installed sources, and render the same document, run: gcc -I/usr/local/include -o example \ /usr/local/share/doc/mupdf/examples/example0 码力 | 245 页 | 817.74 KB | 8 月前3
MuPDF 1.25.0 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 7.7 Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . docs/examples/example.c /* How to use MuPDF to 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 examples ./build/debug/example document.pdf 1 100 0 > page1.ppm To build from installed sources, and render the same document, run: gcc -I/usr/local/include -o example \ /usr/local/share/doc/mupdf/examples/example0 码力 | 259 页 | 1.11 MB | 8 月前3
MuPDF 1.24.0 Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 6.7 Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . docs/examples/example.c /* How to use MuPDF to 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 examples ./build/debug/example document.pdf 1 100 0 > page1.ppm To build from installed sources, and render the same document, run: gcc -I/usr/local/include -o example \ /usr/local/share/doc/mupdf/examples/example0 码力 | 249 页 | 830.15 KB | 8 月前3
PyWebIO v1.5.2 DocumentationFEATURES • Use synchronization instead of callback-based method to get input • Non-declarative layout, simple and efficient • Less intrusive: old script code can be transformed into a Web service only forms on the browser to get user input. In addition, PyWebIO also provides support for click events, layout, etc. PyWebIO aims to allow you to use the least code to interact with the user and provide a good i in range(4): put_text(i) put_table([ (continues on next page) 4.1. User’s guide 13 PyWebIO, Release 1.5.2 (continued from previous page) ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7']0 码力 | 108 页 | 1.37 MB | 1 年前3
PyWebIO v1.5.0 DocumentationFEATURES • Use synchronization instead of callback-based method to get input • Non-declarative layout, simple and efficient • Less intrusive: old script code can be transformed into a Web service only forms on the browser to get user input. In addition, PyWebIO also provides support for click events, layout, etc. PyWebIO aims to allow you to use the least code to interact with the user and provide a good i in range(4): put_text(i) put_table([ (continues on next page) 4.1. User’s guide 13 PyWebIO, Release 1.5.0 (continued from previous page) ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7']0 码力 | 108 页 | 1.37 MB | 1 年前3
PyWebIO v1.5.1 DocumentationFEATURES • Use synchronization instead of callback-based method to get input • Non-declarative layout, simple and efficient • Less intrusive: old script code can be transformed into a Web service only forms on the browser to get user input. In addition, PyWebIO also provides support for click events, layout, etc. PyWebIO aims to allow you to use the least code to interact with the user and provide a good i in range(4): put_text(i) put_table([ (continues on next page) 4.1. User’s guide 13 PyWebIO, Release 1.5.1 (continued from previous page) ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7']0 码力 | 108 页 | 1.37 MB | 1 年前3
PyWebIO v1.6.1 DocumentationFEATURES • Use synchronization instead of callback-based method to get input • Non-declarative layout, simple and efficient • Less intrusive: old script code can be transformed into a Web service only forms on the browser to get user input. In addition, PyWebIO also provides support for click events, layout, etc. PyWebIO aims to allow you to use the least code to interact with the user and provide a good i in range(4): put_text(i) put_table([ (continues on next page) 4.1. User’s guide 13 PyWebIO, Release 1.6.1 (continued from previous page) ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7']0 码力 | 108 页 | 1.37 MB | 1 年前3
PyWebIO v1.6.2 DocumentationFEATURES • Use synchronization instead of callback-based method to get input • Non-declarative layout, simple and efficient • Less intrusive: old script code can be transformed into a Web service only forms on the browser to get user input. In addition, PyWebIO also provides support for click events, layout, etc. PyWebIO aims to allow you to use the least code to interact with the user and provide a good i in range(4): put_text(i) put_table([ (continues on next page) 4.1. User’s guide 13 PyWebIO, Release 1.6.2 (continued from previous page) ['Commodity', 'Price'], ['Apple', '5.5'], ['Banana', '7']0 码力 | 108 页 | 1.37 MB | 1 年前3
共 505 条
- 1
- 2
- 3
- 4
- 5
- 6
- 51













