Root/
| 1 | /* |
| 2 | * gfx/pdftoc.h - PDF writer with TOC generation |
| 3 | * |
| 4 | * Written 2016 by Werner Almesberger |
| 5 | * Copyright 2016 by Werner Almesberger |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; either version 2 of the License, or |
| 10 | * (at your option) any later version. |
| 11 | */ |
| 12 | |
| 13 | |
| 14 | #ifndef GFX_PDFTOC_H |
| 15 | #define GFX_PDFTOC_H |
| 16 | |
| 17 | #include <stdbool.h> |
| 18 | |
| 19 | |
| 20 | struct pdftoc; |
| 21 | |
| 22 | struct pdftoc *pdftoc_begin(const char *file); |
| 23 | bool pdftoc_write(struct pdftoc *ctx, const void *data, unsigned length); |
| 24 | void pdftoc_title(struct pdftoc *ctx, const char *title); |
| 25 | void pdftoc_end(struct pdftoc *ctx); |
| 26 | |
| 27 | #endif /* !GFX_PDFTOC_H */ |
| 28 |
Branches:
master
