| 101 | } |
| 102 | |
| 103 | static unsigned char *tp_flate(const void *src, size_t n, size_t *out_len) { |
| 104 | uLongf cap = compressBound((uLong)n); |
| 105 | unsigned char *out = (unsigned char *)malloc(cap); |
| 106 | compress(out, &cap, (const Bytef *)src, (uLong)n); |
| 107 | *out_len = cap; |
| 108 | return out; |
| 109 | } |
| 110 | |
| 111 | #define TP_CATALOG "<< /Type /Catalog /Pages 2 0 R >>" |
| 112 | #define TP_HELV "<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica /Encoding /WinAnsiEncoding >>" |
no outgoing calls
no test coverage detected