source: wkhtmltox/trunk/fuentes/include/wkhtmltox/pdfconverter.hh @ 51

Last change on this file since 51 was 51, checked in by mabarracus, 4 years ago

wip

File size: 1.5 KB
Line 
1// Copyright 2010 wkhtmltopdf authors
2//
3// This file is part of wkhtmltopdf.
4//
5// wkhtmltopdf is free software: you can redistribute it and/or modify
6// it under the terms of the GNU Lesser General Public License as published by
7// the Free Software Foundation, either version 3 of the License, or
8// (at your option) any later version.
9//
10// wkhtmltopdf 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 Lesser General Public License
16// along with wkhtmltopdf.  If not, see <http://www.gnu.org/licenses/>.
17
18#ifndef __PDFCONVERTER_HH__
19#define __PDFCONVERTER_HH__
20
21#include <wkhtmltox/converter.hh>
22#include <wkhtmltox/pdfsettings.hh>
23
24#include <wkhtmltox/dllbegin.inc>
25namespace wkhtmltopdf {
26
27class DLL_LOCAL PdfConverterPrivate;
28
29class DLL_PUBLIC PdfConverter: public Converter {
30        Q_OBJECT
31public:
32        PdfConverter(settings::PdfGlobal & globalSettings);
33        ~PdfConverter();
34        int pageCount();
35        void addResource(const settings::PdfObject & pageSettings, const QString * data=0);
36        const settings::PdfGlobal & globalSettings() const;
37        const QByteArray & output();
38    static const qreal millimeterToPointMultiplier;
39private:
40        PdfConverterPrivate * d;
41        virtual ConverterPrivate & priv();
42        friend class PdfConverterPrivate;
43signals:
44        void producingForms(bool);
45};
46
47}
48#include <wkhtmltox/dllend.inc>
49#endif //__PDFCONVERTER_HH__
Note: See TracBrowser for help on using the repository browser.