 MuPDF 1.24.0 Documentationclasses for each FZ_ERROR_* enum, all derived from a class mupdf::FzErrorBase which in turn derives from std::exception. For example if MuPDF C code does fz_throw(ctx, FZ_ERROR_GENERIC, "something failed"), mupdf::FzStextChar stextchar = *it_line; fz_stext_char* c = stextchar.m_internal; using namespace mupdf; std::cout << "FzStextChar(" << "c=" << c->c << " color=" << c->color << " origin=" << c->origin << " quad=" functions: std::ostream& operator<< (std::ostream& out, const fz_rect& rhs); std::ostream& operator<< (std::ostream& out, const FzRect& rhs); std::string to_string_fz_rect(const fz_rect& s); std::string to_string(const0 码力 | 249 页 | 830.15 KB | 8 月前3 MuPDF 1.24.0 Documentationclasses for each FZ_ERROR_* enum, all derived from a class mupdf::FzErrorBase which in turn derives from std::exception. For example if MuPDF C code does fz_throw(ctx, FZ_ERROR_GENERIC, "something failed"), mupdf::FzStextChar stextchar = *it_line; fz_stext_char* c = stextchar.m_internal; using namespace mupdf; std::cout << "FzStextChar(" << "c=" << c->c << " color=" << c->color << " origin=" << c->origin << " quad=" functions: std::ostream& operator<< (std::ostream& out, const fz_rect& rhs); std::ostream& operator<< (std::ostream& out, const FzRect& rhs); std::string to_string_fz_rect(const fz_rect& s); std::string to_string(const0 码力 | 249 页 | 830.15 KB | 8 月前3
 MuPDF 1.25.0 Documentationclasses for each FZ_ERROR_* enum, all derived from a class mupdf::FzErrorBase which in turn derives from std::exception. For example if MuPDF C code does fz_throw(ctx, FZ_ERROR_GENERIC, "something failed"), mupdf::FzStextChar stextchar = *it_line; fz_stext_char* c = stextchar.m_internal; using namespace mupdf; std::cout << "FzStextChar(" << "c=" << c->c << " color=" << c->color << " origin=" << c->origin << " quad=" functions: std::ostream& operator<< (std::ostream& out, const fz_rect& rhs); std::ostream& operator<< (std::ostream& out, const FzRect& rhs); std::string to_string_fz_rect(const fz_rect& s); std::string to_string(const0 码力 | 259 页 | 1.11 MB | 8 月前3 MuPDF 1.25.0 Documentationclasses for each FZ_ERROR_* enum, all derived from a class mupdf::FzErrorBase which in turn derives from std::exception. For example if MuPDF C code does fz_throw(ctx, FZ_ERROR_GENERIC, "something failed"), mupdf::FzStextChar stextchar = *it_line; fz_stext_char* c = stextchar.m_internal; using namespace mupdf; std::cout << "FzStextChar(" << "c=" << c->c << " color=" << c->color << " origin=" << c->origin << " quad=" functions: std::ostream& operator<< (std::ostream& out, const fz_rect& rhs); std::ostream& operator<< (std::ostream& out, const FzRect& rhs); std::string to_string_fz_rect(const fz_rect& s); std::string to_string(const0 码力 | 259 页 | 1.11 MB | 8 月前3
 MuPDF 1.23.0 Documentationmupdf::FzStextChar stextchar = *it_line; fz_stext_char* c = stextchar.m_internal; using namespace mupdf; std::cout << "FzStextChar(" << "c=" << c->c << " color=" << c->color << " origin=" << c->origin << " quad=" functions: std::ostream& operator<< (std::ostream& out, const fz_rect& rhs); std::ostream& operator<< (std::ostream& out, const FzRect& rhs); std::string to_string_fz_rect(const fz_rect& s); std::string to_string(const to_string(const fz_rect& s); std::string Rect::to_string() const; These each generate text such as: (x0=90.51 y0=160.65 x1=501.39 y1=1215.6) 7.1.6 Environmental variables All builds • MUPDF_mt_ctx0 码力 | 245 页 | 817.74 KB | 8 月前3 MuPDF 1.23.0 Documentationmupdf::FzStextChar stextchar = *it_line; fz_stext_char* c = stextchar.m_internal; using namespace mupdf; std::cout << "FzStextChar(" << "c=" << c->c << " color=" << c->color << " origin=" << c->origin << " quad=" functions: std::ostream& operator<< (std::ostream& out, const fz_rect& rhs); std::ostream& operator<< (std::ostream& out, const FzRect& rhs); std::string to_string_fz_rect(const fz_rect& s); std::string to_string(const to_string(const fz_rect& s); std::string Rect::to_string() const; These each generate text such as: (x0=90.51 y0=160.65 x1=501.39 y1=1215.6) 7.1.6 Environmental variables All builds • MUPDF_mt_ctx0 码力 | 245 页 | 817.74 KB | 8 月前3
 MuPDF 1.22.0 Documentationmupdf::FzStextChar stextchar = *it_line; fz_stext_char* c = stextchar.m_internal; using namespace mupdf; std::cout << "FzStextChar(" << "c=" << c->c << " color=" << c->color << " origin=" << c->origin << " quad=" functions: std::ostream& operator<< (std::ostream& out, const fz_rect& rhs); std::ostream& operator<< (std::ostream& out, const FzRect& rhs); std::string to_string_fz_rect(const fz_rect& s); std::string to_string(const to_string(const fz_rect& s); std::string Rect::to_string() const; These each generate text such as: (x0=90.51 y0=160.65 x1=501.39 y1=1215.6) 5.1.6 Environmental variables All builds • MUPDF_mt_ctx0 码力 | 175 页 | 698.87 KB | 8 月前3 MuPDF 1.22.0 Documentationmupdf::FzStextChar stextchar = *it_line; fz_stext_char* c = stextchar.m_internal; using namespace mupdf; std::cout << "FzStextChar(" << "c=" << c->c << " color=" << c->color << " origin=" << c->origin << " quad=" functions: std::ostream& operator<< (std::ostream& out, const fz_rect& rhs); std::ostream& operator<< (std::ostream& out, const FzRect& rhs); std::string to_string_fz_rect(const fz_rect& s); std::string to_string(const to_string(const fz_rect& s); std::string Rect::to_string() const; These each generate text such as: (x0=90.51 y0=160.65 x1=501.39 y1=1215.6) 5.1.6 Environmental variables All builds • MUPDF_mt_ctx0 码力 | 175 页 | 698.87 KB | 8 月前3
 PyMuPDF 1.24.2 Documentationµs per loop (mean ± std. dev. of 7 runs, 100 loops each) In [24]: len(pix.tobytes()) Out[24]: 21462 In [25]: %timeit img = doc.extract_image(1268) 10.8 ms ± 86 µs per loop (mean ± std. dev. of 7 runs, 100 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) In [28]: len(pix.tobytes()) Out[28]: 2599433 In [29]: %timeit img = doc.extract_image(1186) 15.7 µs ± 116 ns per loop (mean ± std. dev. of 7 runs, 100000 samples_mv) 367 ns ± 1.75 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each) In [4]: %timeit len(pix.samples) 3.52 ms ± 57.5 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) 344 Chapter0 码力 | 565 页 | 6.84 MB | 1 年前3 PyMuPDF 1.24.2 Documentationµs per loop (mean ± std. dev. of 7 runs, 100 loops each) In [24]: len(pix.tobytes()) Out[24]: 21462 In [25]: %timeit img = doc.extract_image(1268) 10.8 ms ± 86 µs per loop (mean ± std. dev. of 7 runs, 100 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) In [28]: len(pix.tobytes()) Out[28]: 2599433 In [29]: %timeit img = doc.extract_image(1186) 15.7 µs ± 116 ns per loop (mean ± std. dev. of 7 runs, 100000 samples_mv) 367 ns ± 1.75 ns per loop (mean ± std. dev. of 7 runs, 1000000 loops each) In [4]: %timeit len(pix.samples) 3.52 ms ± 57.5 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) 344 Chapter0 码力 | 565 页 | 6.84 MB | 1 年前3
共 5 条
- 1













