Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  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.  
  28. extern const struct printer pdf_printer;
  29.  
  30. /**Start plotting a pdf file*/
  31. bool pdf_begin(struct print_settings *settings);
  32.  
  33. /**Finish the current page and start a new one*/
  34. bool pdf_next_page(void);
  35.  
  36. /**Close pdf document and save changes to file*/
  37. void pdf_end(void);
  38.  
  39. void save_pdf(const char *path);
  40.  
  41. #endif /*NETSURF_PDF_PLOTTERS_H*/
  42.