pdfconverter.hh 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. #ifndef __PDFCONVERTER_HH__
  18. #define __PDFCONVERTER_HH__
  19. #include <wkhtmltox/converter.hh>
  20. #include <wkhtmltox/pdfsettings.hh>
  21. #include <wkhtmltox/dllbegin.inc>
  22. namespace wkhtmltopdf {
  23. class DLL_LOCAL PdfConverterPrivate;
  24. class DLL_PUBLIC PdfConverter: public Converter {
  25. Q_OBJECT
  26. public:
  27. PdfConverter(settings::PdfGlobal & globalSettings);
  28. ~PdfConverter();
  29. int pageCount();
  30. void addResource(const settings::PdfObject & pageSettings, const QString * data=0);
  31. const settings::PdfGlobal & globalSettings() const;
  32. const QByteArray & output();
  33. static const qreal millimeterToPointMultiplier;
  34. private:
  35. PdfConverterPrivate * d;
  36. virtual ConverterPrivate & priv();
  37. friend class PdfConverterPrivate;
  38. signals:
  39. void producingForms(bool);
  40. };
  41. }
  42. #include <wkhtmltox/dllend.inc>
  43. #endif //__PDFCONVERTER_HH__