Root/eeshow/gfx/pdftoc.h

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
20struct pdftoc;
21
22struct pdftoc *pdftoc_begin(const char *file);
23bool pdftoc_write(struct pdftoc *ctx, const void *data, unsigned length);
24void pdftoc_title(struct pdftoc *ctx, const char *title);
25void pdftoc_end(struct pdftoc *ctx);
26
27#endif /* !GFX_PDFTOC_H */
28

Archive Download this file

Branches:
master



interactive