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

Function tp_simple

tests/test_doc_links_pdf.c:115–126  ·  view source on GitHub ↗

A one-page PDF whose content is `content` with font F1 = Helvetica. */

Source from the content-addressed store, hash-verified

113
114/* A one-page PDF whose content is `content` with font F1 = Helvetica. */
115static unsigned char *tp_simple(const char *content, size_t *len) {
116 tp_obj_t o[5] = {
117 {TP_CATALOG, NULL, 0},
118 {"<< /Type /Pages /Kids [3 0 R] /Count 1 >>", NULL, 0},
119 {"<< /Type /Page /Parent 2 0 R /MediaBox [0 0 612 792] /Resources << /Font << /F1 4 "
120 "0 R >> >> /Contents 5 0 R >>",
121 NULL, 0},
122 {TP_HELV, NULL, 0},
123 {"", content, strlen(content)},
124 };
125 return tp_pdf(o, 5, NULL, len);
126}
127
128typedef struct {
129 CBMArena arena;

Callers 1

Calls 1

tp_pdfFunction · 0.85

Tested by

no test coverage detected