NetSurf
save_pdf.h
Go to the documentation of this file.
1/*
2 * Copyright 2008 Adam Blokus <adamblokus@gmail.com>
3 *
4 * This file is part of NetSurf, http://www.netsurf-browser.org/
5 *
6 * NetSurf is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * NetSurf is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19/** \file
20 PDF Plotting
21*/
22
23#ifndef NETSURF_PDF_PLOTTERS_H
24#define NETSURF_PDF_PLOTTERS_H
25
26#include "desktop/print.h"
27
28extern const struct printer pdf_printer;
29
30/**Start plotting a pdf file*/
32
33/**Finish the current page and start a new one*/
34bool pdf_next_page(void);
35
36/**Close pdf document and save changes to file*/
37void pdf_end(void);
38
39nserror save_pdf(const char *path);
40
41#endif /*NETSURF_PDF_PLOTTERS_H*/
Conception: Generalized output-in-pages.
bool pdf_begin(struct print_settings *settings)
Start plotting a pdf file.
nserror save_pdf(const char *path)
Definition: save_pdf.c:992
bool pdf_next_page(void)
Finish the current page and start a new one.
const struct printer pdf_printer
void pdf_end(void)
Close pdf document and save changes to file.
nserror
Enumeration of error codes.
Definition: errors.h:29
static struct print_settings * settings
Definition: print.c:50
Settings for a print - filled in by print_make_settings or 'manually' by the caller.
Definition: print.h:50
Printer interface.
Definition: printer.h:34
static nserror path(const struct redraw_context *ctx, const plot_style_t *pstyle, const float *p, unsigned int n, const float transform[6])
Plots a path.
Definition: plot.c:821