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

Function get

tests/test_toc.py:143–146  ·  view source on GitHub ↗
(doc)

Source from the content-addressed store, hash-verified

141 file_out = os.path.abspath(f'{__file__}/../../tests/test_toc_count_out.pdf')
142
143 def get(doc):
144 outlines = doc.xref_get_key(doc.pdf_catalog(), "Outlines")
145 ret = doc.xref_object(int(outlines[1].split()[0]))
146 return ret
147 print()
148 with pymupdf.open(file_in) as doc:
149 print(f'1: {get(doc)}')

Callers 1

test_toc_countFunction · 0.70

Calls 3

xref_get_keyMethod · 0.80
pdf_catalogMethod · 0.80
xref_objectMethod · 0.80

Tested by

no test coverage detected