MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / pdf_resolve

Function pdf_resolve

internal/cbm/pdf/pdf_obj.c:1481–1490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1479}
1480
1481pdf_val_t *pdf_resolve(pdf_doc_t *d, pdf_val_t *v) {
1482 int depth = 0;
1483 while (v && v->kind == PV_REF) {
1484 v = pdf_get(d, v->ref_num);
1485 if (++depth > PDF_MAX_RESOLVE) {
1486 return NULL;
1487 }
1488 }
1489 return v;
1490}
1491
1492static pdf_objstm_t *objstm_open(pdf_doc_t *d, int64_t stmnum) {
1493 pdf_xent_t *e = xent(d, stmnum);

Callers 13

type1_builtinFunction · 0.85
font_init_simpleFunction · 0.85
font_init_type0Function · 0.85
pdf_font_forFunction · 0.85
do_xobjectFunction · 0.85
runFunction · 0.85
collect_pagesFunction · 0.85
page_extractFunction · 0.85
cbm_pdf_extractFunction · 0.85
pdf_dgetFunction · 0.85
reconstructFunction · 0.85
pdf_doc_openFunction · 0.85

Calls 1

pdf_getFunction · 0.85

Tested by

no test coverage detected