A one-page PDF whose content is `content` with font F1 = Helvetica. */
| 113 | |
| 114 | /* A one-page PDF whose content is `content` with font F1 = Helvetica. */ |
| 115 | static 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 | |
| 128 | typedef struct { |
| 129 | CBMArena arena; |
no test coverage detected