Poppler Qt5  0.80.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-2019, 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  *
24  * This program is free software; you can redistribute it and/or modify
25  * it under the terms of the GNU General Public License as published by
26  * the Free Software Foundation; either version 2, or (at your option)
27  * any later version.
28  *
29  * This program is distributed in the hope that it will be useful,
30  * but WITHOUT ANY WARRANTY; without even the implied warranty of
31  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32  * GNU General Public License for more details.
33  *
34  * You should have received a copy of the GNU General Public License
35  * along with this program; if not, write to the Free Software
36  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
37  */
38 
39 #ifndef __POPPLER_QT_H__
40 #define __POPPLER_QT_H__
41 
42 #include "poppler-annotation.h"
43 #include "poppler-link.h"
44 #include "poppler-optcontent.h"
45 #include "poppler-page-transition.h"
46 
47 #include <QtCore/QByteArray>
48 #include <QtCore/QDateTime>
49 #include <QtCore/QSet>
50 #include <QtXml/QDomDocument>
51 #include "poppler-export.h"
52 
53 class EmbFile;
54 class Sound;
55 class AnnotMovie;
56 
60 namespace Poppler {
61 
62  class Document;
63  class DocumentData;
64 
65  class PageData;
66 
67  class FormField;
68 
69  class TextBoxData;
70 
71  class PDFConverter;
72  class PSConverter;
73 
74  struct OutlineItemData;
75 
85  typedef void (*PopplerDebugFunc)(const QString & /*message*/, const QVariant & /*closure*/);
86 
98  POPPLER_QT5_EXPORT void setDebugErrorFunction(PopplerDebugFunc debugFunction, const QVariant &closure);
99 
109  class POPPLER_QT5_EXPORT TextBox {
110  friend class Page;
111  public:
117  TextBox(const QString& text, const QRectF &bBox);
121  ~TextBox();
122 
126  QString text() const;
127 
134  QRectF boundingBox() const;
135 
141  TextBox *nextWord() const;
142 
146  QRectF charBoundingBox(int i) const;
147 
151  bool hasSpaceAfter() const;
152 
153  private:
154  Q_DISABLE_COPY(TextBox)
155 
156  TextBoxData *m_data;
157  };
158 
159 
160  class FontInfoData;
165  class POPPLER_QT5_EXPORT FontInfo {
166  friend class Document;
167  public:
171  enum Type {
172  unknown,
173  Type1,
174  Type1C,
175  Type1COT,
176  Type3,
177  TrueType,
178  TrueTypeOT,
179  CIDType0,
180  CIDType0C,
181  CIDType0COT,
182  CIDTrueType,
183  CIDTrueTypeOT
184  };
185 
187 
190  FontInfo();
191 
195  FontInfo( const FontInfoData &fid );
197 
201  FontInfo( const FontInfo &fi );
202 
206  ~FontInfo();
207 
211  QString name() const;
212 
217  QString substituteName() const;
218 
223  QString file() const;
224 
230  bool isEmbedded() const;
231 
238  bool isSubset() const;
239 
247  Type type() const;
248 
257  QString typeName() const;
258 
262  FontInfo& operator=( const FontInfo &fi );
263 
264  private:
265  FontInfoData *m_data;
266  };
267 
268 
269  class FontIteratorData;
289  class POPPLER_QT5_EXPORT FontIterator {
290  friend class Document;
291  friend class DocumentData;
292  public:
296  ~FontIterator();
297 
302  QList<FontInfo> next();
303 
308  bool hasNext() const;
309 
313  int currentPage() const;
314 
315  private:
316  Q_DISABLE_COPY( FontIterator )
317  FontIterator( int, DocumentData *dd );
318 
319  FontIteratorData *d;
320  };
321 
322 
323  class EmbeddedFileData;
327  class POPPLER_QT5_EXPORT EmbeddedFile {
328  friend class DocumentData;
329  friend class AnnotationPrivate;
330  public:
332  EmbeddedFile(EmbFile *embfile);
334 
338  ~EmbeddedFile();
339 
343  QString name() const;
344 
350  QString description() const;
351 
357  int size() const;
358 
362  QDateTime modDate() const;
363 
367  QDateTime createDate() const;
368 
374  QByteArray checksum() const;
375 
381  QString mimeType() const;
382 
386  QByteArray data();
387 
393  bool isValid() const;
394 
398  //QDataStream dataStream() const;
399 
400  private:
401  Q_DISABLE_COPY(EmbeddedFile)
402  EmbeddedFile(EmbeddedFileData &dd);
403 
404  EmbeddedFileData *m_embeddedFile;
405  };
406 
407 
416  class POPPLER_QT5_EXPORT Page {
417  friend class Document;
418  public:
422  ~Page();
423 
427  enum Rotation { Rotate0 = 0,
428  Rotate90 = 1,
429  Rotate180 = 2,
430  Rotate270 = 3
431  };
432 
436  enum PageAction {
438  Closing
439  };
440 
445  enum TextLayout {
447  RawOrderLayout
448  };
449 
454  enum PainterFlag {
455  NoPainterFlags = 0x00000000,
456 
463  DontSaveAndRestore = 0x00000001
464  };
465  Q_DECLARE_FLAGS( PainterFlags, PainterFlag )
466 
467 
505  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;
506 
516  typedef void (*RenderToImagePartialUpdateFunc)(const QImage & /*image*/, const QVariant & /*closure*/);
517 
526  typedef bool (*ShouldRenderToImagePartialQueryFunc)(const QVariant & /*closure*/);
527 
577  QImage renderToImage(double xres, double yres,
578  int x, int y, int w, int h, Rotation rotate,
579  RenderToImagePartialUpdateFunc partialUpdateCallback,
580  ShouldRenderToImagePartialQueryFunc shouldDoPartialUpdateCallback,
581  const QVariant &closure
582  ) const;
583 
591  typedef bool (*ShouldAbortQueryFunc)(const QVariant & /*closure*/);
592 
646  QImage renderToImage(double xres, double yres,
647  int x, int y, int w, int h, Rotation rotate,
648  RenderToImagePartialUpdateFunc partialUpdateCallback,
649  ShouldRenderToImagePartialQueryFunc shouldDoPartialUpdateCallback,
650  ShouldAbortQueryFunc shouldAbortRenderCallback,
651  const QVariant &closure
652  ) const;
653 
696  bool renderToPainter(QPainter* painter, double xres=72.0, double yres=72.0, int x=-1, int y=-1, int w=-1, int h=-1,
697  Rotation rotate = Rotate0, PainterFlags flags = NoPainterFlags) const;
698 
707  QImage thumbnail() const;
708 
718  QString text(const QRectF &rect, TextLayout textLayout) const;
719 
728  QString text(const QRectF &rect) const;
729 
733  enum SearchDirection { FromTop,
735  PreviousResult
736  };
737 
741  enum SearchMode { CaseSensitive,
742  CaseInsensitive
743  };
744 
749  {
750  NoSearchFlags = 0x00000000,
751  IgnoreCase = 0x00000001,
752  WholeWords = 0x00000002,
753  IgnoreDiacritics = 0x00000004
754  };
757  Q_DECLARE_FLAGS( SearchFlags, SearchFlag )
758 
759 
770  Q_DECL_DEPRECATED bool search(const QString &text, double &rectLeft, double &rectTop, double &rectRight, double &rectBottom, SearchDirection direction, SearchMode caseSensitive, Rotation rotate = Rotate0) const;
771 
784  bool search(const QString &text, double &rectLeft, double &rectTop, double &rectRight, double &rectBottom, SearchDirection direction, SearchFlags flags = NoSearchFlags, Rotation rotate = Rotate0) const;
785 
797  Q_DECL_DEPRECATED QList<QRectF> search(const QString &text, SearchMode caseSensitive, Rotation rotate = Rotate0) const;
798 
810  QList<QRectF> search(const QString &text, SearchFlags flags = NoSearchFlags, Rotation rotate = Rotate0) const;
811 
828  QList<TextBox*> textList(Rotation rotate = Rotate0) const;
829 
854  QList<TextBox*> textList(Rotation rotate, ShouldAbortQueryFunc shouldAbortExtractionCallback, const QVariant &closure) const;
855 
859  QSizeF pageSizeF() const;
860 
864  QSize pageSize() const;
865 
876  PageTransition *transition() const;
877 
883  Link *action( PageAction act ) const;
884 
888  enum Orientation {
892  UpsideDown
893  };
894 
898  Orientation orientation() const;
899 
903  void defaultCTM(double *CTM, double dpiX, double dpiY, int rotate, bool upsideDown);
904 
908  QList<Link*> links() const;
909 
918  QList<Annotation*> annotations() const;
919 
920 
933  QList<Annotation*> annotations(const QSet<Annotation::SubType> &subtypes) const;
934 
942  void addAnnotation( const Annotation *ann );
943 
950  void removeAnnotation( const Annotation *ann );
951 
958  QList<FormField*> formFields() const;
959 
967  double duration() const;
968 
974  QString label() const;
975 
981  int index() const;
982 
983  private:
984  Q_DISABLE_COPY(Page)
985 
986  Page(DocumentData *doc, int index);
987  PageData *m_page;
988  };
989 
997  class POPPLER_QT5_EXPORT OutlineItem {
998  friend class Document;
999  public:
1003  OutlineItem();
1004  ~OutlineItem();
1005 
1006  OutlineItem(const OutlineItem &other);
1007  OutlineItem &operator=(const OutlineItem &other);
1008 
1009  OutlineItem(OutlineItem &&other);
1010  OutlineItem &operator=(OutlineItem &&other);
1011 
1015  bool isNull() const;
1016 
1020  QString name() const;
1021 
1025  bool isOpen() const;
1026 
1032  QSharedPointer<const LinkDestination> destination() const;
1033 
1039  QString externalFileName() const;
1040 
1046  QString uri() const;
1047 
1053  bool hasChildren() const;
1054 
1060  QVector<OutlineItem> children() const;
1061 
1062  private:
1063  OutlineItem(OutlineItemData *data);
1064  OutlineItemData *m_data;
1065  };
1066 
1117  class POPPLER_QT5_EXPORT Document {
1118  friend class Page;
1119  friend class DocumentData;
1120 
1121  public:
1125  enum PageMode {
1131  UseAttach
1132  };
1133 
1137  enum PageLayout {
1144  TwoPageRight
1145  };
1146 
1154  ArthurBackend
1155  };
1156 
1162  enum RenderHint {
1163  Antialiasing = 0x00000001,
1164  TextAntialiasing = 0x00000002,
1165  TextHinting = 0x00000004,
1166  TextSlightHinting = 0x00000008,
1167  OverprintPreview = 0x00000010,
1168  ThinLineSolid = 0x00000020,
1169  ThinLineShape = 0x00000040,
1170  IgnorePaperColor = 0x00000080,
1171  HideAnnotations = 0x00000100
1172  };
1173  Q_DECLARE_FLAGS( RenderHints, RenderHint )
1174 
1175 
1180  enum FormType {
1183  XfaForm
1184  };
1185 
1195  void setColorDisplayProfile(void *outputProfileA);
1205  void setColorDisplayProfileName(const QString &name);
1213  void* colorRgbProfile() const;
1221  void *colorDisplayProfile() const;
1222 
1240  static Document *load(const QString & filePath,
1241  const QByteArray &ownerPassword=QByteArray(),
1242  const QByteArray &userPassword=QByteArray());
1243 
1265  static Document *loadFromData(const QByteArray &fileContents,
1266  const QByteArray &ownerPassword=QByteArray(),
1267  const QByteArray &userPassword=QByteArray());
1268 
1279  Page *page(int index) const;
1280 
1293  Page *page(const QString &label) const;
1294 
1298  int numPages() const;
1299 
1305  PageMode pageMode() const;
1306 
1312  PageLayout pageLayout() const;
1313 
1320  Qt::LayoutDirection textDirection() const;
1321 
1330  bool unlock(const QByteArray &ownerPassword, const QByteArray &userPassword);
1331 
1335  bool isLocked() const;
1336 
1352  QDateTime date( const QString & data ) const;
1353 
1359  bool setDate( const QString & key, const QDateTime & val );
1360 
1364  QDateTime creationDate() const;
1365 
1371  bool setCreationDate( const QDateTime & val );
1372 
1376  QDateTime modificationDate() const;
1377 
1383  bool setModificationDate( const QDateTime & val );
1384 
1401  QString info( const QString & data ) const;
1402 
1408  bool setInfo( const QString & key, const QString & val );
1409 
1413  QString title() const;
1414 
1420  bool setTitle( const QString & val );
1421 
1425  QString author() const;
1426 
1432  bool setAuthor( const QString & val );
1433 
1437  QString subject() const;
1438 
1444  bool setSubject( const QString & val );
1445 
1449  QString keywords() const;
1450 
1456  bool setKeywords( const QString & val );
1457 
1461  QString creator() const;
1462 
1468  bool setCreator( const QString & val );
1469 
1473  QString producer() const;
1474 
1480  bool setProducer( const QString & val );
1481 
1487  bool removeInfo();
1488 
1492  QStringList infoKeys() const;
1493 
1497  bool isEncrypted() const;
1498 
1505  bool isLinearized() const;
1506 
1511  bool okToPrint() const;
1512 
1517  bool okToPrintHighRes() const;
1518 
1526  bool okToChange() const;
1527 
1532  bool okToCopy() const;
1533 
1539  bool okToAddNotes() const;
1540 
1548  bool okToFillForm() const;
1549 
1555  bool okToCreateFormFields() const;
1556 
1562  bool okToExtractForAccessibility() const;
1563 
1571  bool okToAssemble() const;
1572 
1584  void getPdfVersion(int *major, int *minor) const;
1585 
1597  QList<FontInfo> fonts() const;
1598 
1614  FontIterator* newFontIterator( int startPage = 0 ) const;
1615 
1621  QByteArray fontData(const FontInfo &font) const;
1622 
1629  QList<EmbeddedFile*> embeddedFiles() const;
1630 
1634  bool hasEmbeddedFiles() const;
1635 
1659  QDomDocument *toc() const;
1660 
1668  QVector<OutlineItem> outline() const;
1669 
1678  LinkDestination *linkDestination( const QString &name );
1679 
1685  void setPaperColor(const QColor &color);
1691  QColor paperColor() const;
1692 
1700  void setRenderBackend( RenderBackend backend );
1708  RenderBackend renderBackend() const;
1709 
1715  static QSet<RenderBackend> availableRenderBackends();
1716 
1726  void setRenderHint( RenderHint hint, bool on = true );
1732  RenderHints renderHints() const;
1733 
1741  PSConverter *psConverter() const;
1742 
1750  PDFConverter *pdfConverter() const;
1751 
1757  QString metadata() const;
1758 
1771  bool hasOptionalContent() const;
1772 
1780  OptContentModel *optionalContentModel();
1781 
1790  QStringList scripts() const;
1791 
1804  bool getPdfId(QByteArray *permanentId, QByteArray *updateId) const;
1805 
1811  FormType formType() const;
1812 
1818  QVector<int> formCalculateOrder() const;
1819 
1823  ~Document();
1824 
1825  private:
1826  Q_DISABLE_COPY(Document)
1827 
1828  DocumentData *m_doc;
1829 
1830  Document(DocumentData *dataA);
1831  };
1832 
1833  class BaseConverterPrivate;
1834  class PSConverterPrivate;
1835  class PDFConverterPrivate;
1843  class POPPLER_QT5_EXPORT BaseConverter
1844  {
1845  friend class Document;
1846  public:
1850  virtual ~BaseConverter();
1851 
1853  void setOutputFileName(const QString &outputFileName);
1854 
1860  void setOutputDevice(QIODevice *device);
1861 
1867  virtual bool convert() = 0;
1868 
1869  enum Error
1870  {
1871  NoError,
1872  FileLockedError,
1873  OpenOutputError,
1874  NotSupportedInputFileError
1875  };
1876 
1881  Error lastError() const;
1882 
1883  protected:
1885  BaseConverter(BaseConverterPrivate &dd);
1886  Q_DECLARE_PRIVATE(BaseConverter)
1887  BaseConverterPrivate *d_ptr;
1889 
1890  private:
1891  Q_DISABLE_COPY(BaseConverter)
1892  };
1893 
1910  class POPPLER_QT5_EXPORT PSConverter : public BaseConverter
1911  {
1912  friend class Document;
1913  public:
1919  enum PSOption {
1920  Printing = 0x00000001,
1921  StrictMargins = 0x00000002,
1922  ForceRasterization = 0x00000004,
1923  PrintToEPS = 0x00000008,
1924  HideAnnotations = 0x00000010
1925  };
1926  Q_DECLARE_FLAGS( PSOptions, PSOption )
1927 
1928 
1931  ~PSConverter();
1932 
1934  void setPageList(const QList<int> &pageList);
1935 
1939  void setTitle(const QString &title);
1940 
1944  void setHDPI(double hDPI);
1945 
1949  void setVDPI(double vDPI);
1950 
1954  void setRotate(int rotate);
1955 
1959  void setPaperWidth(int paperWidth);
1960 
1964  void setPaperHeight(int paperHeight);
1965 
1969  void setRightMargin(int marginRight);
1970 
1974  void setBottomMargin(int marginBottom);
1975 
1979  void setLeftMargin(int marginLeft);
1980 
1984  void setTopMargin(int marginTop);
1985 
1993  void setStrictMargins(bool strictMargins);
1994 
1996  void setForceRasterize(bool forceRasterize);
1997 
2003  void setPSOptions(PSOptions options);
2004 
2012  PSOptions psOptions() const;
2013 
2021  void setPageConvertedCallback(void (* callback)(int page, void *payload), void *payload);
2022 
2023  bool convert() override;
2024 
2025  private:
2026  Q_DECLARE_PRIVATE(PSConverter)
2027  Q_DISABLE_COPY(PSConverter)
2028 
2029  PSConverter(DocumentData *document);
2030  };
2031 
2037  class POPPLER_QT5_EXPORT PDFConverter : public BaseConverter
2038  {
2039  friend class Document;
2040  public:
2044  enum PDFOption {
2045  WithChanges = 0x00000001
2046  };
2047  Q_DECLARE_FLAGS( PDFOptions, PDFOption )
2048 
2049 
2052  ~PDFConverter();
2053 
2057  void setPDFOptions(PDFOptions options);
2061  PDFOptions pdfOptions() const;
2062 
2063  bool convert() override;
2064 
2065  private:
2066  Q_DECLARE_PRIVATE(PDFConverter)
2067  Q_DISABLE_COPY(PDFConverter)
2068 
2069  PDFConverter(DocumentData *document);
2070  };
2071 
2075  POPPLER_QT5_EXPORT Q_DECL_DEPRECATED QDateTime convertDate( char *dateString );
2076 
2082  POPPLER_QT5_EXPORT QDateTime convertDate( const char *dateString );
2083 
2089  POPPLER_QT5_EXPORT bool isCmsAvailable();
2090 
2096  POPPLER_QT5_EXPORT bool isOverprintPreviewAvailable();
2097 
2098  class SoundData;
2108  class POPPLER_QT5_EXPORT SoundObject {
2109  public:
2113  enum SoundType {
2115  Embedded
2116  };
2117 
2125  ALaw
2126  };
2127 
2129  SoundObject(Sound *popplersound);
2131 
2132  ~SoundObject();
2133 
2137  SoundType soundType() const;
2138 
2142  QString url() const;
2143 
2147  QByteArray data() const;
2148 
2152  double samplingRate() const;
2153 
2157  int channels() const;
2158 
2162  int bitsPerSample() const;
2163 
2167  SoundEncoding soundEncoding() const;
2168 
2169  private:
2170  Q_DISABLE_COPY(SoundObject)
2171 
2172  SoundData *m_soundData;
2173  };
2174 
2175  class MovieData;
2181  class POPPLER_QT5_EXPORT MovieObject {
2182  friend class AnnotationPrivate;
2183  public:
2187  enum PlayMode {
2191  PlayPalindrome
2192  };
2193 
2194  ~MovieObject();
2195 
2199  QString url() const;
2200 
2204  QSize size() const;
2205 
2209  int rotation() const;
2210 
2214  bool showControls() const;
2215 
2219  PlayMode playMode() const;
2220 
2225  bool showPosterImage() const;
2226 
2233  QImage posterImage() const;
2234 
2235  private:
2237  MovieObject( AnnotMovie *ann );
2239 
2240  Q_DISABLE_COPY(MovieObject)
2241 
2242  MovieData *m_movieData;
2243  };
2244 
2245 }
2246 
2247 Q_DECLARE_OPERATORS_FOR_FLAGS(Poppler::Page::PainterFlags)
2248 Q_DECLARE_OPERATORS_FOR_FLAGS(Poppler::Page::SearchFlags)
2249 Q_DECLARE_OPERATORS_FOR_FLAGS(Poppler::Document::RenderHints)
2250 Q_DECLARE_OPERATORS_FOR_FLAGS(Poppler::PDFConverter::PDFOptions)
2251 Q_DECLARE_OPERATORS_FOR_FLAGS(Poppler::PSConverter::PSOptions)
2252 
2253 #endif
Converts a PDF to PDF (thus saves a copy of the document).
Definition: poppler-qt5.h:2037
Play continuously until stopped.
Definition: poppler-qt5.h:2190
Like PlayOnce, but leaving the controls open.
Definition: poppler-qt5.h:2189
PageMode
The page mode.
Definition: poppler-qt5.h:1125
bool isOverprintPreviewAvailable()
Whether the overprint preview functionality is available.
SoundType
The type of sound.
Definition: poppler-qt5.h:2113
The real sound file is external.
Definition: poppler-qt5.h:2114
TextLayout
How the text is going to be returned.
Definition: poppler-qt5.h:445
bool isCmsAvailable()
Whether the color management functions are available.
A destination.
Definition: poppler-link.h:67
Describes the physical location of text on a document page.
Definition: poppler-qt5.h:109
Annotation class holding properties shared by all annotations.
Definition: poppler-annotation.h:174
Display the pages in two columns, with odd-numbered pages on the left.
Definition: poppler-qt5.h:1141
void(* PopplerDebugFunc)(const QString &, const QVariant &)
Debug/error function.
Definition: poppler-qt5.h:85
PDF document.
Definition: poppler-qt5.h:1117
Find the next result, moving "down the page".
Definition: poppler-qt5.h:734
Raw encoding, with unspecified or unsigned values in the range [ 0, 2^B - 1 ].
Definition: poppler-qt5.h:2122
Thumbnail images visible.
Definition: poppler-qt5.h:1128
Landscape orientation (portrait, with 90 degrees clockwise rotation )
Definition: poppler-qt5.h:889
Optional content group panel visible.
Definition: poppler-qt5.h:1130
Seascape orientation (portrait, with 270 degrees clockwise rotation)
Definition: poppler-qt5.h:891
Type
The type of font.
Definition: poppler-qt5.h:171
No mode - neither document outline nor thumbnail images are visible.
Definition: poppler-qt5.h:1126
Fullscreen mode (no menubar, windows controls etc)
Definition: poppler-qt5.h:1129
Container class for a sound file in a PDF document.
Definition: poppler-qt5.h:2108
Rotation
The type of rotation to apply for an operation.
Definition: poppler-qt5.h:427
PageLayout
The page layout.
Definition: poppler-qt5.h:1137
PageAction
The kinds of page actions.
Definition: poppler-qt5.h:436
PSOption
Options for the PS export.
Definition: poppler-qt5.h:1919
RenderHint
The render hints available.
Definition: poppler-qt5.h:1162
A page in a document.
Definition: poppler-qt5.h:416
Container class for an embedded file with a PDF document.
Definition: poppler-qt5.h:327
Splash backend.
Definition: poppler-qt5.h:1153
The text is layouted to resemble the real page layout.
Definition: poppler-qt5.h:446
Play the movie once, closing the movie controls at the end.
Definition: poppler-qt5.h:2188
Container class for a movie object in a PDF document.
Definition: poppler-qt5.h:2181
RenderBackend
The render backends available.
Definition: poppler-qt5.h:1152
PlayMode
The play mode for playing the movie.
Definition: poppler-qt5.h:2187
Document doesn&#39;t contain forms.
Definition: poppler-qt5.h:1181
void setDebugErrorFunction(PopplerDebugFunc debugFunction, const QVariant &closure)
Set a new debug/error output function.
PDFOption
Options for the PDF export.
Definition: poppler-qt5.h:2044
Document outline visible.
Definition: poppler-qt5.h:1127
Display a single column of pages.
Definition: poppler-qt5.h:1140
Twos-complement values.
Definition: poppler-qt5.h:2123
Orientation
Types of orientations that are possible.
Definition: poppler-qt5.h:888
Model for optional content.
Definition: poppler-optcontent.h:49
Display a single page.
Definition: poppler-qt5.h:1139
The action when a page is "opened".
Definition: poppler-qt5.h:437
FormType
Form types.
Definition: poppler-qt5.h:1180
SearchFlag
Flags to modify the search behaviour.
Definition: poppler-qt5.h:748
Normal portrait orientation.
Definition: poppler-qt5.h:890
Iterator for reading the fonts in a document.
Definition: poppler-qt5.h:289
Container class for information about a font within a PDF document.
Definition: poppler-qt5.h:165
Display the pages two at a time, with odd-numbered pages on the left.
Definition: poppler-qt5.h:1143
Display the pages in two columns, with odd-numbered pages on the right.
Definition: poppler-qt5.h:1142
Item in the outline of a PDF document.
Definition: poppler-qt5.h:997
Layout not specified.
Definition: poppler-qt5.h:1138
QDateTime convertDate(char *dateString)
Conversion from PDF date string format to QDateTime.
SearchMode
The type of search to perform.
Definition: poppler-qt5.h:741
Base converter.
Definition: poppler-qt5.h:1843
AcroForm.
Definition: poppler-qt5.h:1182
SoundEncoding
The encoding format used for the sound.
Definition: poppler-qt5.h:2121
The Poppler Qt5 binding.
Definition: poppler-annotation.h:45
PainterFlag
Additional flags for the renderToPainter method.
Definition: poppler-qt5.h:454
SearchDirection
The starting point for a search.
Definition: poppler-qt5.h:733
mu-law-encoded samples
Definition: poppler-qt5.h:2124
Describes how a PDF file viewer shall perform the transition from one page to another.
Definition: poppler-page-transition.h:48
Converts a PDF to PS.
Definition: poppler-qt5.h:1910