Poppler Qt5  0.89.0
poppler-qt5.h
1 /* poppler-qt.h: qt interface to poppler
2  * Copyright (C) 2005, Net Integration Technologies, Inc.
3  * Copyright (C) 2005, 2007, Brad Hards <bradh@frogmouth.net>
4  * Copyright (C) 2005-2015, 2017-2020, Albert Astals Cid <aacid@kde.org>
5  * Copyright (C) 2005, Stefan Kebekus <stefan.kebekus@math.uni-koeln.de>
6  * Copyright (C) 2006-2011, Pino Toscano <pino@kde.org>
7  * Copyright (C) 2009 Shawn Rutledge <shawn.t.rutledge@gmail.com>
8  * Copyright (C) 2010 Suzuki Toshiya <mpsuzuki@hiroshima-u.ac.jp>
9  * Copyright (C) 2010 Matthias Fauconneau <matthias.fauconneau@gmail.com>
10  * Copyright (C) 2011 Andreas Hartmetz <ahartmetz@gmail.com>
11  * Copyright (C) 2011 Glad Deschrijver <glad.deschrijver@gmail.com>
12  * Copyright (C) 2012, Guillermo A. Amaral B. <gamaral@kde.org>
13  * Copyright (C) 2012, Fabio D'Urso <fabiodurso@hotmail.it>
14  * Copyright (C) 2012, Tobias Koenig <tobias.koenig@kdab.com>
15  * Copyright (C) 2012, 2014, 2015, 2018, 2019 Adam Reichold <adamreichold@myopera.com>
16  * Copyright (C) 2012, 2013 Thomas Freitag <Thomas.Freitag@alfa.de>
17  * Copyright (C) 2013 Anthony Granger <grangeranthony@gmail.com>
18  * Copyright (C) 2016 Jakub Alba <jakubalba@gmail.com>
19  * Copyright (C) 2017 Oliver Sander <oliver.sander@tu-dresden.de>
20  * Copyright (C) 2017, 2018 Klarälvdalens Datakonsult AB, a KDAB Group company, <info@kdab.com>. Work sponsored by the LiMux project of the city of Munich
21  * Copyright (C) 2018 Nelson Benítez León <nbenitezl@gmail.com>
22  * Copyright (C) 2019 Jan Grulich <jgrulich@redhat.com>
23  * Copyright (C) 2019 Alexander Volkov <a.volkov@rusbitech.ru>
24  * Copyright (C) 2020 Philipp Knechtges <philipp-dev@knechtges.com>
25  *
26  * This program is free software; you can redistribute it and/or modify
27  * it under the terms of the GNU General Public License as published by
28  * the Free Software Foundation; either version 2, or (at your option)
29  * any later version.
30  *
31  * This program is distributed in the hope that it will be useful,
32  * but WITHOUT ANY WARRANTY; without even the implied warranty of
33  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34  * GNU General Public License for more details.
35  *
36  * You should have received a copy of the GNU General Public License
37  * along with this program; if not, write to the Free Software
38  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
39  */
40 
41 #ifndef __POPPLER_QT_H__
42 #define __POPPLER_QT_H__
43 
44 #include "poppler-annotation.h"
45 #include "poppler-link.h"
46 #include "poppler-optcontent.h"
47 #include "poppler-page-transition.h"
48 
49 #include <QtCore/QByteArray>
50 #include <QtCore/QDateTime>
51 #include <QtCore/QSet>
52 #include <QtXml/QDomDocument>
53 #include "poppler-export.h"
54 
55 class EmbFile;
56 class Sound;
57 class AnnotMovie;
58 
62 namespace Poppler {
63 
64  class Document;
65  class DocumentData;
66 
67  class PageData;
68 
69  class FormField;
70  class FormFieldSignature;
71 
72  class TextBoxData;
73 
74  class PDFConverter;
75  class PSConverter;
76 
77  struct OutlineItemData;
78 
88  typedef void (*PopplerDebugFunc)(const QString & /*message*/, const QVariant & /*closure*/);
89 
101  POPPLER_QT5_EXPORT void setDebugErrorFunction(PopplerDebugFunc debugFunction, const QVariant &closure);
102 
112  class POPPLER_QT5_EXPORT TextBox {
113  friend class Page;
114  public:
120  TextBox(const QString& text, const QRectF &bBox);
124  ~TextBox();
125 
129  QString text() const;
130 
137  QRectF boundingBox() const;
138 
144  TextBox *nextWord() const;
145 
149  QRectF charBoundingBox(int i) const;
150 
154  bool hasSpaceAfter() const;
155 
156  private:
157  Q_DISABLE_COPY(TextBox)
158 
159  TextBoxData *m_data;
160  };
161 
162 
163  class FontInfoData;
168  class POPPLER_QT5_EXPORT FontInfo {
169  friend class Document;
170  public:
174  enum Type {
175  unknown,
176  Type1,
177  Type1C,
178  Type1COT,
179  Type3,
180  TrueType,
181  TrueTypeOT,
182  CIDType0,
183  CIDType0C,
184  CIDType0COT,
185  CIDTrueType,
186  CIDTrueTypeOT
187  };
188 
190 
193  FontInfo();
194 
198  FontInfo( const FontInfoData &fid );
200 
204  FontInfo( const FontInfo &fi );
205 
209  ~FontInfo();
210 
214  QString name() const;
215 
220  QString substituteName() const;
221 
226  QString file() const;
227 
233  bool isEmbedded() const;
234 
241  bool isSubset() const;
242 
250  Type type() const;
251 
260  QString typeName() const;
261 
265  FontInfo& operator=( const FontInfo &fi );
266 
267  private:
268  FontInfoData *m_data;
269  };
270 
271 
272  class FontIteratorData;
292  class POPPLER_QT5_EXPORT FontIterator {
293  friend class Document;
294  friend class DocumentData;
295  public:
299  ~FontIterator();
300 
305  QList<FontInfo> next();
306 
311  bool hasNext() const;
312 
316  int currentPage() const;
317 
318  private:
319  Q_DISABLE_COPY( FontIterator )
320  FontIterator( int, DocumentData *dd );
321 
322  FontIteratorData *d;
323  };
324 
325 
326  class EmbeddedFileData;
330  class POPPLER_QT5_EXPORT EmbeddedFile {
331  friend class DocumentData;
332  friend class AnnotationPrivate;
333  public:
335  EmbeddedFile(EmbFile *embfile);
337 
341  ~EmbeddedFile();
342 
346  QString name() const;
347 
353  QString description() const;
354 
360  int size() const;
361 
365  QDateTime modDate() const;
366 
370  QDateTime createDate() const;
371 
377  QByteArray checksum() const;
378 
384  QString mimeType() const;
385 
389  QByteArray data();
390 
396  bool isValid() const;
397 
401  //QDataStream dataStream() const;
402 
403  private:
404  Q_DISABLE_COPY(EmbeddedFile)
405  EmbeddedFile(EmbeddedFileData &dd);
406 
407  EmbeddedFileData *m_embeddedFile;
408  };
409 
410 
419  class POPPLER_QT5_EXPORT Page {
420  friend class Document;
421  public:
425  ~Page();
426 
430  enum Rotation { Rotate0 = 0,
431  Rotate90 = 1,
432  Rotate180 = 2,
433  Rotate270 = 3
434  };
435 
439  enum PageAction {
441  Closing
442  };
443 
448  enum TextLayout {
450  RawOrderLayout
451  };
452 
457  enum PainterFlag {
458  NoPainterFlags = 0x00000000,
459 
466  DontSaveAndRestore = 0x00000001
467  };
468  Q_DECLARE_FLAGS( PainterFlags, PainterFlag )
469 
470 
508  QImage renderToImage(double xres=72.0, double yres=72.0, int x=-1, int y=-1, int w=-1, int h=-1, Rotation rotate = Rotate0) const;
509 
519  typedef void (*RenderToImagePartialUpdateFunc)(const QImage & /*image*/, const QVariant & /*closure*/);
520 
529  typedef bool (*ShouldRenderToImagePartialQueryFunc)(const QVariant & /*closure*/);
530 
580  QImage renderToImage(double xres, double yres,
581  int x, int y, int w, int h, Rotation rotate,
582  RenderToImagePartialUpdateFunc partialUpdateCallback,
583  ShouldRenderToImagePartialQueryFunc shouldDoPartialUpdateCallback,
584  const QVariant &payload
585  ) const;
586 
594  typedef bool (*ShouldAbortQueryFunc)(const QVariant & /*closure*/);
595 
649  QImage renderToImage(double xres, double yres,
650  int x, int y, int w, int h, Rotation rotate,
651  RenderToImagePartialUpdateFunc partialUpdateCallback,
652  ShouldRenderToImagePartialQueryFunc shouldDoPartialUpdateCallback,
653  ShouldAbortQueryFunc shouldAbortRenderCallback,
654  const QVariant &payload
655  ) const;
656 
699  bool renderToPainter(QPainter* painter, double xres=72.0, double yres=72.0, int x=-1, int y=-1, int w=-1, int h=-1,
700  Rotation rotate = Rotate0, PainterFlags flags = NoPainterFlags) const;
701 
710  QImage thumbnail() const;
711 
721  QString text(const QRectF &rect, TextLayout textLayout) const;
722 
731  QString text(const QRectF &rect) const;
732 
736  enum SearchDirection { FromTop,
738  PreviousResult
739  };
740 
744  enum SearchMode { CaseSensitive,
745  CaseInsensitive
746  };
747 
752  {
753  NoSearchFlags = 0x00000000,
754  IgnoreCase = 0x00000001,
755  WholeWords = 0x00000002,
756  IgnoreDiacritics = 0x00000004
757  };
760  Q_DECLARE_FLAGS( SearchFlags, SearchFlag )
761 
762 
773  Q_DECL_DEPRECATED bool search(const QString &text, double &rectLeft, double &rectTop, double &rectRight, double &rectBottom, SearchDirection direction, SearchMode caseSensitive, Rotation rotate = Rotate0) const;
774 
787  bool search(const QString &text, double &sLeft, double &sTop, double &sRight, double &sBottom, SearchDirection direction, SearchFlags flags = NoSearchFlags, Rotation rotate = Rotate0) const;
788 
800  Q_DECL_DEPRECATED QList<QRectF> search(const QString &text, SearchMode caseSensitive, Rotation rotate = Rotate0) const;
801 
813  QList<QRectF> search(const QString &text, SearchFlags flags = NoSearchFlags, Rotation rotate = Rotate0) const;
814 
831  QList<TextBox*> textList(Rotation rotate = Rotate0) const;
832 
857  QList<TextBox*> textList(Rotation rotate, ShouldAbortQueryFunc shouldAbortExtractionCallback, const QVariant &closure) const;
858 
862  QSizeF pageSizeF() const;
863 
867  QSize pageSize() const;
868 
879  PageTransition *transition() const;
880 
886  Link *action( PageAction act ) const;
887 
891  enum Orientation {
895  UpsideDown
896  };
897 
901  Orientation orientation() const;
902 
906  void defaultCTM(double *CTM, double dpiX, double dpiY, int rotate, bool upsideDown);
907 
911  QList<Link*> links() const;
912 
921  QList<Annotation*> annotations() const;
922 
923 
936  QList<Annotation*> annotations(const QSet<Annotation::SubType> &subtypes) const;
937 
945  void addAnnotation( const Annotation *ann );
946 
953  void removeAnnotation( const Annotation *ann );
954 
961  QList<FormField*> formFields() const;
962 
970  double duration() const;
971 
977  QString label() const;
978 
984  int index() const;
985 
986  private:
987  Q_DISABLE_COPY(Page)
988 
989  Page(DocumentData *doc, int index);
990  PageData *m_page;
991  };
992 
1000  class POPPLER_QT5_EXPORT OutlineItem {
1001  friend class Document;
1002  public:
1006  OutlineItem();
1007  ~OutlineItem();
1008 
1009  OutlineItem(const OutlineItem &other);
1010  OutlineItem &operator=(const OutlineItem &other);
1011 
1012  OutlineItem(OutlineItem &&other) noexcept;
1013  OutlineItem &operator=(OutlineItem &&other) noexcept;
1014 
1018  bool isNull() const;
1019 
1023  QString name() const;
1024 
1028  bool isOpen() const;
1029 
1035  QSharedPointer<const LinkDestination> destination() const;
1036 
1042  QString externalFileName() const;
1043 
1049  QString uri() const;
1050 
1056  bool hasChildren() const;
1057 
1063  QVector<OutlineItem> children() const;
1064 
1065  private:
1066  OutlineItem(OutlineItemData *data);
1067  OutlineItemData *m_data;
1068  };
1069 
1120  class POPPLER_QT5_EXPORT Document {
1121  friend class Page;
1122  friend class DocumentData;
1123 
1124  public:
1128  enum PageMode {
1134  UseAttach
1135  };
1136 
1140  enum PageLayout {
1147  TwoPageRight
1148  };
1149 
1157  ArthurBackend
1158  };
1159 
1165  enum RenderHint {
1166  Antialiasing = 0x00000001,
1167  TextAntialiasing = 0x00000002,
1168  TextHinting = 0x00000004,
1169  TextSlightHinting = 0x00000008,
1170  OverprintPreview = 0x00000010,
1171  ThinLineSolid = 0x00000020,
1172  ThinLineShape = 0x00000040,
1173  IgnorePaperColor = 0x00000080,
1174  HideAnnotations = 0x00000100
1175  };
1176  Q_DECLARE_FLAGS( RenderHints, RenderHint )
1177 
1178 
1183  enum FormType {
1186  XfaForm
1187  };
1188 
1201  void setColorDisplayProfile(void *outputProfileA);
1211  void setColorDisplayProfileName(const QString &name);
1222  void* colorRgbProfile() const;
1233  void *colorDisplayProfile() const;
1234 
1252  static Document *load(const QString & filePath,
1253  const QByteArray &ownerPassword=QByteArray(),
1254  const QByteArray &userPassword=QByteArray());
1255 
1280  static Document *load(QIODevice *device,
1281  const QByteArray &ownerPassword=QByteArray(),
1282  const QByteArray &userPassword=QByteArray());
1283 
1305  static Document *loadFromData(const QByteArray &fileContents,
1306  const QByteArray &ownerPassword=QByteArray(),
1307  const QByteArray &userPassword=QByteArray());
1308 
1319  Page *page(int index) const;
1320 
1333  Page *page(const QString &label) const;
1334 
1338  int numPages() const;
1339 
1345  PageMode pageMode() const;
1346 
1352  PageLayout pageLayout() const;
1353 
1360  Qt::LayoutDirection textDirection() const;
1361 
1370  bool unlock(const QByteArray &ownerPassword, const QByteArray &userPassword);
1371 
1375  bool isLocked() const;
1376 
1392  QDateTime date( const QString & type ) const;
1393 
1399  bool setDate( const QString & key, const QDateTime & val );
1400 
1404  QDateTime creationDate() const;
1405 
1411  bool setCreationDate( const QDateTime & val );
1412 
1416  QDateTime modificationDate() const;
1417 
1423  bool setModificationDate( const QDateTime & val );
1424 
1441  QString info( const QString & type ) const;
1442 
1448  bool setInfo( const QString & key, const QString & val );
1449 
1453  QString title() const;
1454 
1460  bool setTitle( const QString & val );
1461 
1465  QString author() const;
1466 
1472  bool setAuthor( const QString & val );
1473 
1477  QString subject() const;
1478 
1484  bool setSubject( const QString & val );
1485 
1489  QString keywords() const;
1490 
1496  bool setKeywords( const QString & val );
1497 
1501  QString creator() const;
1502 
1508  bool setCreator( const QString & val );
1509 
1513  QString producer() const;
1514 
1520  bool setProducer( const QString & val );
1521 
1527  bool removeInfo();
1528 
1532  QStringList infoKeys() const;
1533 
1537  bool isEncrypted() const;
1538 
1545  bool isLinearized() const;
1546 
1551  bool okToPrint() const;
1552 
1557  bool okToPrintHighRes() const;
1558 
1566  bool okToChange() const;
1567 
1572  bool okToCopy() const;
1573 
1579  bool okToAddNotes() const;
1580 
1588  bool okToFillForm() const;
1589 
1595  bool okToCreateFormFields() const;
1596 
1602  bool okToExtractForAccessibility() const;
1603 
1611  bool okToAssemble() const;
1612 
1624  void getPdfVersion(int *major, int *minor) const;
1625 
1637  QList<FontInfo> fonts() const;
1638 
1654  FontIterator* newFontIterator( int startPage = 0 ) const;
1655 
1661  QByteArray fontData(const FontInfo &fi) const;
1662 
1669  QList<EmbeddedFile*> embeddedFiles() const;
1670 
1674  bool hasEmbeddedFiles() const;
1675 
1699  QDomDocument *toc() const;
1700 
1708  QVector<OutlineItem> outline() const;
1709 
1718  LinkDestination *linkDestination( const QString &name );
1719 
1725  void setPaperColor(const QColor &color);
1731  QColor paperColor() const;
1732 
1740  void setRenderBackend( RenderBackend backend );
1748  RenderBackend renderBackend() const;
1749 
1755  static QSet<RenderBackend> availableRenderBackends();
1756 
1766  void setRenderHint( RenderHint hint, bool on = true );
1772  RenderHints renderHints() const;
1773 
1781  PSConverter *psConverter() const;
1782 
1790  PDFConverter *pdfConverter() const;
1791 
1797  QString metadata() const;
1798 
1811  bool hasOptionalContent() const;
1812 
1820  OptContentModel *optionalContentModel();
1821 
1830  QStringList scripts() const;
1831 
1844  bool getPdfId(QByteArray *permanentId, QByteArray *updateId) const;
1845 
1851  FormType formType() const;
1852 
1858  QVector<int> formCalculateOrder() const;
1859 
1868  QVector<FormFieldSignature*> signatures() const;
1869 
1873  ~Document();
1874 
1875  private:
1876  Q_DISABLE_COPY(Document)
1877 
1878  DocumentData *m_doc;
1879 
1880  Document(DocumentData *dataA);
1881  };
1882 
1883  class BaseConverterPrivate;
1884  class PSConverterPrivate;
1885  class PDFConverterPrivate;
1893  class POPPLER_QT5_EXPORT BaseConverter
1894  {
1895  friend class Document;
1896  public:
1900  virtual ~BaseConverter();
1901 
1903  void setOutputFileName(const QString &outputFileName);
1904 
1910  void setOutputDevice(QIODevice *device);
1911 
1917  virtual bool convert() = 0;
1918 
1919  enum Error
1920  {
1921  NoError,
1922  FileLockedError,
1923  OpenOutputError,
1924  NotSupportedInputFileError
1925  };
1926 
1931  Error lastError() const;
1932 
1933  protected:
1935  BaseConverter(BaseConverterPrivate &dd);
1936  Q_DECLARE_PRIVATE(BaseConverter)
1937  BaseConverterPrivate *d_ptr;
1939 
1940  private:
1941  Q_DISABLE_COPY(BaseConverter)
1942  };
1943 
1960  class POPPLER_QT5_EXPORT PSConverter : public BaseConverter
1961  {
1962  friend class Document;
1963  public:
1969  enum PSOption {
1970  Printing = 0x00000001,
1971  StrictMargins = 0x00000002,
1972  ForceRasterization = 0x00000004,
1973  PrintToEPS = 0x00000008,
1974  HideAnnotations = 0x00000010
1975  };
1976  Q_DECLARE_FLAGS( PSOptions, PSOption )
1977 
1978 
1981  ~PSConverter() override;
1982 
1984  void setPageList(const QList<int> &pageList);
1985 
1989  void setTitle(const QString &title);
1990 
1994  void setHDPI(double hDPI);
1995 
1999  void setVDPI(double vDPI);
2000 
2004  void setRotate(int rotate);
2005 
2009  void setPaperWidth(int paperWidth);
2010 
2014  void setPaperHeight(int paperHeight);
2015 
2019  void setRightMargin(int marginRight);
2020 
2024  void setBottomMargin(int marginBottom);
2025 
2029  void setLeftMargin(int marginLeft);
2030 
2034  void setTopMargin(int marginTop);
2035 
2043  void setStrictMargins(bool strictMargins);
2044 
2046  void setForceRasterize(bool forceRasterize);
2047 
2053  void setPSOptions(PSOptions options);
2054 
2062  PSOptions psOptions() const;
2063 
2071  void setPageConvertedCallback(void (* callback)(int page, void *payload), void *payload);
2072 
2073  bool convert() override;
2074 
2075  private:
2076  Q_DECLARE_PRIVATE(PSConverter)
2077  Q_DISABLE_COPY(PSConverter)
2078 
2079  PSConverter(DocumentData *document);
2080  };
2081 
2087  class POPPLER_QT5_EXPORT PDFConverter : public BaseConverter
2088  {
2089  friend class Document;
2090  public:
2094  enum PDFOption {
2095  WithChanges = 0x00000001
2096  };
2097  Q_DECLARE_FLAGS( PDFOptions, PDFOption )
2098 
2099 
2102  ~PDFConverter() override;
2103 
2107  void setPDFOptions(PDFOptions options);
2111  PDFOptions pdfOptions() const;
2112 
2113  bool convert() override;
2114 
2115  private:
2116  Q_DECLARE_PRIVATE(PDFConverter)
2117  Q_DISABLE_COPY(PDFConverter)
2118 
2119  PDFConverter(DocumentData *document);
2120  };
2121 
2125  POPPLER_QT5_EXPORT Q_DECL_DEPRECATED QDateTime convertDate( char *dateString );
2126 
2132  POPPLER_QT5_EXPORT QDateTime convertDate( const char *dateString );
2133 
2139  POPPLER_QT5_EXPORT bool isCmsAvailable();
2140 
2146  POPPLER_QT5_EXPORT bool isOverprintPreviewAvailable();
2147 
2148  class SoundData;
2158  class POPPLER_QT5_EXPORT SoundObject {
2159  public:
2163  enum SoundType {
2165  Embedded
2166  };
2167 
2175  ALaw
2176  };
2177 
2179  SoundObject(Sound *popplersound);
2181 
2182  ~SoundObject();
2183 
2187  SoundType soundType() const;
2188 
2192  QString url() const;
2193 
2197  QByteArray data() const;
2198 
2202  double samplingRate() const;
2203 
2207  int channels() const;
2208 
2212  int bitsPerSample() const;
2213 
2217  SoundEncoding soundEncoding() const;
2218 
2219  private:
2220  Q_DISABLE_COPY(SoundObject)
2221 
2222  SoundData *m_soundData;
2223  };
2224 
2225  class MovieData;
2231  class POPPLER_QT5_EXPORT MovieObject {
2232  friend class AnnotationPrivate;
2233  public:
2237  enum PlayMode {
2241  PlayPalindrome
2242  };
2243 
2244  ~MovieObject();
2245 
2249  QString url() const;
2250 
2254  QSize size() const;
2255 
2259  int rotation() const;
2260 
2264  bool showControls() const;
2265 
2269  PlayMode playMode() const;
2270 
2275  bool showPosterImage() const;
2276 
2283  QImage posterImage() const;
2284 
2285  private:
2287  MovieObject( AnnotMovie *ann );
2289 
2290  Q_DISABLE_COPY(MovieObject)
2291 
2292  MovieData *m_movieData;
2293  };
2294 
2295 }
2296 
2297 Q_DECLARE_OPERATORS_FOR_FLAGS(Poppler::Page::PainterFlags)
2298 Q_DECLARE_OPERATORS_FOR_FLAGS(Poppler::Page::SearchFlags)
2299 Q_DECLARE_OPERATORS_FOR_FLAGS(Poppler::Document::RenderHints)
2300 Q_DECLARE_OPERATORS_FOR_FLAGS(Poppler::PDFConverter::PDFOptions)
2301 Q_DECLARE_OPERATORS_FOR_FLAGS(Poppler::PSConverter::PSOptions)
2302 
2303 #endif
Poppler::SoundObject::SoundEncoding
SoundEncoding
The encoding format used for the sound.
Definition: poppler-qt5.h:2171
Poppler::Page::SearchDirection
SearchDirection
The starting point for a search.
Definition: poppler-qt5.h:736
Poppler::FontInfo::Type
Type
The type of font.
Definition: poppler-qt5.h:174
Poppler::SoundObject
Container class for a sound file in a PDF document.
Definition: poppler-qt5.h:2158
Poppler::PopplerDebugFunc
void(* PopplerDebugFunc)(const QString &, const QVariant &)
Debug/error function.
Definition: poppler-qt5.h:88
Poppler::Document::UseNone
@ UseNone
No mode - neither document outline nor thumbnail images are visible.
Definition: poppler-qt5.h:1129
Poppler::Document::NoLayout
@ NoLayout
Layout not specified.
Definition: poppler-qt5.h:1141
Poppler::isCmsAvailable
bool isCmsAvailable()
Whether the color management functions are available.
Poppler::FontInfo
Container class for information about a font within a PDF document.
Definition: poppler-qt5.h:168
Poppler::Document::OneColumn
@ OneColumn
Display a single column of pages.
Definition: poppler-qt5.h:1143
Poppler::Page::SearchMode
SearchMode
The type of search to perform.
Definition: poppler-qt5.h:744
Poppler::Annotation
Annotation class holding properties shared by all annotations.
Definition: poppler-annotation.h:174
Poppler::Page::PhysicalLayout
@ PhysicalLayout
The text is layouted to resemble the real page layout.
Definition: poppler-qt5.h:449
Poppler::isOverprintPreviewAvailable
bool isOverprintPreviewAvailable()
Whether the overprint preview functionality is available.
Poppler::TextBox
Describes the physical location of text on a document page.
Definition: poppler-qt5.h:112
Poppler::MovieObject::PlayMode
PlayMode
The play mode for playing the movie.
Definition: poppler-qt5.h:2237
Poppler::SoundObject::muLaw
@ muLaw
mu-law-encoded samples
Definition: poppler-qt5.h:2174
Poppler::Page::Seascape
@ Seascape
Seascape orientation (portrait, with 270 degrees clockwise rotation)
Definition: poppler-qt5.h:894
Poppler::Document::AcroForm
@ AcroForm
AcroForm.
Definition: poppler-qt5.h:1185
Poppler::SoundObject::SoundType
SoundType
The type of sound.
Definition: poppler-qt5.h:2163
Poppler::Page::SearchFlag
SearchFlag
Flags to modify the search behaviour.
Definition: poppler-qt5.h:751
Poppler::MovieObject
Container class for a movie object in a PDF document.
Definition: poppler-qt5.h:2231
Poppler::Document::PageMode
PageMode
The page mode.
Definition: poppler-qt5.h:1128
Poppler::Document::SinglePage
@ SinglePage
Display a single page.
Definition: poppler-qt5.h:1142
Poppler::Page::Opening
@ Opening
The action when a page is "opened".
Definition: poppler-qt5.h:440
Poppler::Document::RenderBackend
RenderBackend
The render backends available.
Definition: poppler-qt5.h:1155
Poppler::setDebugErrorFunction
void setDebugErrorFunction(PopplerDebugFunc debugFunction, const QVariant &closure)
Set a new debug/error output function.
Poppler::Document
PDF document.
Definition: poppler-qt5.h:1120
Poppler::Document::UseThumbs
@ UseThumbs
Thumbnail images visible.
Definition: poppler-qt5.h:1131
Poppler::PDFConverter::PDFOption
PDFOption
Options for the PDF export.
Definition: poppler-qt5.h:2094
Poppler::LinkDestination
A destination.
Definition: poppler-link.h:68
Poppler::MovieObject::PlayRepeat
@ PlayRepeat
Play continuously until stopped.
Definition: poppler-qt5.h:2240
Poppler::SoundObject::Signed
@ Signed
Twos-complement values.
Definition: poppler-qt5.h:2173
Poppler::Document::TwoPageLeft
@ TwoPageLeft
Display the pages two at a time, with odd-numbered pages on the left.
Definition: poppler-qt5.h:1146
Poppler::Page
A page in a document.
Definition: poppler-qt5.h:419
Poppler::FontIterator
Definition: poppler-qt5.h:292
Poppler::Document::SplashBackend
@ SplashBackend
Splash backend.
Definition: poppler-qt5.h:1156
Poppler::PageTransition
Describes how a PDF file viewer shall perform the transition from one page to another.
Definition: poppler-page-transition.h:48
Poppler::Page::Rotation
Rotation
The type of rotation to apply for an operation.
Definition: poppler-qt5.h:430
Poppler::BaseConverter
Base converter.
Definition: poppler-qt5.h:1893
Poppler::Page::TextLayout
TextLayout
How the text is going to be returned.
Definition: poppler-qt5.h:448
Poppler::Document::UseOutlines
@ UseOutlines
Document outline visible.
Definition: poppler-qt5.h:1130
Poppler::PSConverter::PSOption
PSOption
Options for the PS export.
Definition: poppler-qt5.h:1969
Poppler::PDFConverter
Converts a PDF to PDF (thus saves a copy of the document).
Definition: poppler-qt5.h:2087
Poppler::Page::Orientation
Orientation
Types of orientations that are possible.
Definition: poppler-qt5.h:891
Poppler::Page::Portrait
@ Portrait
Normal portrait orientation.
Definition: poppler-qt5.h:893
Poppler::Page::NextResult
@ NextResult
Find the next result, moving "down the page".
Definition: poppler-qt5.h:737
Poppler::Document::FormType
FormType
Form types.
Definition: poppler-qt5.h:1183
Poppler::EmbeddedFile
Container class for an embedded file with a PDF document.
Definition: poppler-qt5.h:330
Poppler::OptContentModel
Model for optional content.
Definition: poppler-optcontent.h:49
Poppler::Page::PainterFlag
PainterFlag
Additional flags for the renderToPainter method.
Definition: poppler-qt5.h:457
Poppler::PSConverter
Definition: poppler-qt5.h:1960
Poppler::MovieObject::PlayOpen
@ PlayOpen
Like PlayOnce, but leaving the controls open.
Definition: poppler-qt5.h:2239
Poppler::Document::UseOC
@ UseOC
Optional content group panel visible.
Definition: poppler-qt5.h:1133
Poppler::Document::PageLayout
PageLayout
The page layout.
Definition: poppler-qt5.h:1140
Poppler::Document::FullScreen
@ FullScreen
Fullscreen mode (no menubar, windows controls etc)
Definition: poppler-qt5.h:1132
Poppler::Document::NoForm
@ NoForm
Document doesn't contain forms.
Definition: poppler-qt5.h:1184
Poppler::SoundObject::Raw
@ Raw
Raw encoding, with unspecified or unsigned values in the range [ 0, 2^B - 1 ].
Definition: poppler-qt5.h:2172
Poppler::Document::RenderHint
RenderHint
The render hints available.
Definition: poppler-qt5.h:1165
Poppler::Page::Landscape
@ Landscape
Landscape orientation (portrait, with 90 degrees clockwise rotation )
Definition: poppler-qt5.h:892
Poppler::Document::TwoColumnRight
@ TwoColumnRight
Display the pages in two columns, with odd-numbered pages on the right.
Definition: poppler-qt5.h:1145
Poppler::OutlineItem
Item in the outline of a PDF document.
Definition: poppler-qt5.h:1000
Poppler::Page::PageAction
PageAction
The kinds of page actions.
Definition: poppler-qt5.h:439
Poppler::SoundObject::External
@ External
The real sound file is external.
Definition: poppler-qt5.h:2164
Poppler::MovieObject::PlayOnce
@ PlayOnce
Play the movie once, closing the movie controls at the end.
Definition: poppler-qt5.h:2238
Poppler::convertDate
QDateTime convertDate(char *dateString)
Conversion from PDF date string format to QDateTime.
Poppler
The Poppler Qt5 binding.
Definition: poppler-annotation.h:45
Poppler::Document::TwoColumnLeft
@ TwoColumnLeft
Display the pages in two columns, with odd-numbered pages on the left.
Definition: poppler-qt5.h:1144