MCPcopy Index your code
hub / github.com/pymupdf/PyMuPDF / JM_object_to_buffer

Function JM_object_to_buffer

src/__init__.py:21003–21009  ·  view source on GitHub ↗
(what, compress, ascii)

Source from the content-addressed store, hash-verified

21001
21002
21003def JM_object_to_buffer(what, compress, ascii):
21004 res = mupdf.fz_new_buffer(512)
21005 out = mupdf.FzOutput(res)
21006 mupdf.pdf_print_obj(out, what, compress, ascii)
21007 out.fz_close_output()
21008 mupdf.fz_terminate_buffer(res)
21009 return res
21010
21011
21012def JM_outline_xrefs(obj, xrefs):

Callers 4

xref_get_keyMethod · 0.85
xref_objectMethod · 0.85
JM_get_page_labelsFunction · 0.85
JM_set_object_valueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…