Poppler Qt5  0.85.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  * Copyright (C) 2019 Alexander Volkov <a.volkov@rusbitech.ru>
24  *
25  * This program is free software; you can redistribute it and/or modify
26  * it under the terms of the GNU General Public License as published by
27  * the Free Software Foundation; either version 2, or (at your option)
28  * any later version.
29  *
30  * This program is distributed in the hope that it will be useful,
31  * but WITHOUT ANY WARRANTY; without even the implied warranty of
32  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33  * GNU General Public License for more details.
34  *
35  * You should have received a copy of the GNU General Public License
36  * along with this program; if not, write to the Free Software
37  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
38  */
39 
40 #ifndef __POPPLER_QT_H__
41 #define __POPPLER_QT_H__
42 
43 #include "poppler-annotation.h"
44 #include "poppler-link.h"
45 #include "poppler-optcontent.h"
46 #include "poppler-page-transition.h"
47 
48 #include <QtCore/QByteArray>
49 #include <QtCore/QDateTime>
50 #include <QtCore/QSet>
51 #include <QtXml/QDomDocument>
52 #include "poppler-export.h"
53 
54 class EmbFile;
55 class Sound;
56 class AnnotMovie;
57 
61 namespace Poppler {
62 
63  class Document;
64  class DocumentData;
65 
66  class PageData;
67 
68  class FormField;
69 
70  class TextBoxData;
71 
72  class PDFConverter;
73  class PSConverter;
74 
75  struct OutlineItemData;
76 
86  typedef void (*PopplerDebugFunc)(const QString & /*message*/, const QVariant & /*closure*/);
87 
99  POPPLER_QT5_EXPORT void setDebugErrorFunction(PopplerDebugFunc debugFunction, const QVariant &closure);
100 
110  class POPPLER_QT5_EXPORT TextBox {
111  friend class Page;
112  public:
118  TextBox(const QString& text, const QRectF &bBox);
122  ~TextBox();
123 
127  QString text() const;
128 
135  QRectF boundingBox() const;
136 
142  TextBox *nextWord() const;
143 
147  QRectF charBoundingBox(int i) const;
148 
152  bool hasSpaceAfter() const;
153 
154  private:
155  Q_DISABLE_COPY(TextBox)
156 
157  TextBoxData *m_data;
158  };
159 
160 
161  class FontInfoData;
166  class POPPLER_QT5_EXPORT FontInfo {
167  friend class Document;
168  public:
172  enum Type {
173  unknown,
174  Type1,
175  Type1C,
176  Type1COT,
177  Type3,
178  TrueType,
179  TrueTypeOT,
180  CIDType0,
181  CIDType0C,
182  CIDType0COT,
183  CIDTrueType,
184  CIDTrueTypeOT
185  };
186 
188 
191  FontInfo();
192 
196  FontInfo( const FontInfoData &fid );
198 
202  FontInfo( const FontInfo &fi );
203 
207  ~FontInfo();
208 
212  QString name() const;
213 
218  QString substituteName() const;
219 
224  QString file() const;
225 
231  bool isEmbedded() const;
232 
239  bool isSubset() const;
240 
248  Type type() const;
249 
258  QString typeName() const;
259 
263  FontInfo& operator=( const FontInfo &fi );
264 
265  private:
266  FontInfoData *m_data;
267  };
268 
269 
270  class FontIteratorData;
290  class POPPLER_QT5_EXPORT FontIterator {
291  friend class Document;
292  friend class DocumentData;
293  public:
297  ~FontIterator();
298 
303  QList<FontInfo> next();
304 
309  bool hasNext() const;
310 
314  int currentPage() const;
315 
316  private:
317  Q_DISABLE_COPY( FontIterator )
318  FontIterator( int, DocumentData *dd );
319 
320  FontIteratorData *d;
321  };
322 
323 
324  class EmbeddedFileData;
328  class POPPLER_QT5_EXPORT EmbeddedFile {
329  friend class DocumentData;
330  friend class AnnotationPrivate;
331  public:
333  EmbeddedFile(EmbFile *embfile);
335 
339  ~EmbeddedFile();
340 
344  QString name() const;
345 
351  QString description() const;
352 
358  int size() const;
359 
363  QDateTime modDate() const;
364 
368  QDateTime createDate() const;
369 
375  QByteArray checksum() const;
376 
382  QString mimeType() const;
383 
387  QByteArray data();
388 
394  bool isValid() const;
395 
399  //QDataStream dataStream() const;
400 
401  private:
402  Q_DISABLE_COPY(EmbeddedFile)
403  EmbeddedFile(EmbeddedFileData &dd);
404 
405  EmbeddedFileData *m_embeddedFile;
406  };
407 
408 
417  class POPPLER_QT5_EXPORT Page {
418  friend class Document;
419  public:
423  ~Page();
424 
428  enum Rotation { Rotate0 = 0,
429  Rotate90 = 1,
430  Rotate180 = 2,
431  Rotate270 = 3
432  };
433 
437  enum PageAction {
439  Closing
440  };
441 
446  enum TextLayout {
448  RawOrderLayout
449  };
450 
455  enum PainterFlag {
456  NoPainterFlags = 0x00000000,
457 
464  DontSaveAndRestore = 0x00000001
465  };
466  Q_DECLARE_FLAGS( PainterFlags, PainterFlag )
467 
468 
506  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;
507 
517  typedef void (*RenderToImagePartialUpdateFunc)(const QImage & /*image*/, const QVariant & /*closure*/);
518 
527  typedef bool (*ShouldRenderToImagePartialQueryFunc)(const QVariant & /*closure*/);
528 
578  QImage renderToImage(double xres, double yres,
579  int x, int y, int w, int h, Rotation rotate,
580  RenderToImagePartialUpdateFunc partialUpdateCallback,
581  ShouldRenderToImagePartialQueryFunc shouldDoPartialUpdateCallback,
582  const QVariant &payload
583  ) const;
584 
592  typedef bool (*ShouldAbortQueryFunc)(const QVariant & /*closure*/);
593 
647  QImage renderToImage(double xres, double yres,
648  int x, int y, int w, int h, Rotation rotate,
649  RenderToImagePartialUpdateFunc partialUpdateCallback,
650  ShouldRenderToImagePartialQueryFunc shouldDoPartialUpdateCallback,
651  ShouldAbortQueryFunc shouldAbortRenderCallback,
652  const QVariant &payload
653  ) const;
654 
697  bool renderToPainter(QPainter* painter, double xres=72.0, double yres=72.0, int x=-1, int y=-1, int w=-1, int h=-1,
698  Rotation rotate = Rotate0, PainterFlags flags = NoPainterFlags) const;
699 
708  QImage thumbnail() const;
709 
719  QString text(const QRectF &rect, TextLayout textLayout) const;
720 
729  QString text(const QRectF &rect) const;
730 
734  enum SearchDirection { FromTop,
736  PreviousResult
737  };
738 
742  enum SearchMode { CaseSensitive,
743  CaseInsensitive
744  };
745 
750  {
751  NoSearchFlags = 0x00000000,
752  IgnoreCase = 0x00000001,
753  WholeWords = 0x00000002,
754  IgnoreDiacritics = 0x00000004
755  };
758  Q_DECLARE_FLAGS( SearchFlags, SearchFlag )
759 
760 
771  Q_DECL_DEPRECATED bool search(const QString &text, double &rectLeft, double &rectTop, double &rectRight, double &rectBottom, SearchDirection direction, SearchMode caseSensitive, Rotation rotate = Rotate0) const;
772 
785  bool search(const QString &text, double &sLeft, double &sTop, double &sRight, double &sBottom, SearchDirection direction, SearchFlags flags = NoSearchFlags, Rotation rotate = Rotate0) const;
786 
798  Q_DECL_DEPRECATED QList<QRectF> search(const QString &text, SearchMode caseSensitive, Rotation rotate = Rotate0) const;
799 
811  QList<QRectF> search(const QString &text, SearchFlags flags = NoSearchFlags, Rotation rotate = Rotate0) const;
812 
829  QList<TextBox*> textList(Rotation rotate = Rotate0) const;
830 
855  QList<TextBox*> textList(Rotation rotate, ShouldAbortQueryFunc shouldAbortExtractionCallback, const QVariant &closure) const;
856 
860  QSizeF pageSizeF() const;
861 
865  QSize pageSize() const;
866 
877  PageTransition *transition() const;
878 
884  Link *action( PageAction act ) const;
885 
889  enum Orientation {
893  UpsideDown
894  };
895 
899  Orientation orientation() const;
900 
904  void defaultCTM(double *CTM, double dpiX, double dpiY, int rotate, bool upsideDown);
905 
909  QList<Link*> links() const;
910 
919  QList<Annotation*> annotations() const;
920 
921 
934  QList<Annotation*> annotations(const QSet<Annotation::SubType> &subtypes) const;
935 
943  void addAnnotation( const Annotation *ann );
944 
951  void removeAnnotation( const Annotation *ann );
952 
959  QList<FormField*> formFields() const;
960 
968  double duration() const;
969 
975  QString label() const;
976 
982  int index() const;
983 
984  private:
985  Q_DISABLE_COPY(Page)
986 
987  Page(DocumentData *doc, int index);
988  PageData *m_page;
989  };
990 
998  class POPPLER_QT5_EXPORT OutlineItem {
999  friend class Document;
1000  public:
1004  OutlineItem();
1005  ~OutlineItem();
1006 
1007  OutlineItem(const OutlineItem &other);
1008  OutlineItem &operator=(const OutlineItem &other);
1009 
1010  OutlineItem(OutlineItem &&other) noexcept;
1011  OutlineItem &operator=(OutlineItem &&other) noexcept;
1012 
1016  bool isNull() const;
1017 
1021  QString name() const;
1022 
1026  bool isOpen() const;
1027 
1033  QSharedPointer<const LinkDestination> destination() const;
1034 
1040  QString externalFileName() const;
1041 
1047  QString uri() const;
1048 
1054  bool hasChildren() const;
1055 
1061  QVector<OutlineItem> children() const;
1062 
1063  private:
1064  OutlineItem(OutlineItemData *data);
1065  OutlineItemData *m_data;
1066  };
1067 
1118  class POPPLER_QT5_EXPORT Document {
1119  friend class Page;
1120  friend class DocumentData;
1121 
1122  public:
1126  enum PageMode {
1132  UseAttach
1133  };
1134 
1138  enum PageLayout {
1145  TwoPageRight
1146  };
1147 
1155  ArthurBackend
1156  };
1157 
1163  enum RenderHint {
1164  Antialiasing = 0x00000001,
1165  TextAntialiasing = 0x00000002,
1166  TextHinting = 0x00000004,
1167  TextSlightHinting = 0x00000008,
1168  OverprintPreview = 0x00000010,
1169  ThinLineSolid = 0x00000020,
1170  ThinLineShape = 0x00000040,
1171  IgnorePaperColor = 0x00000080,
1172  HideAnnotations = 0x00000100
1173  };
1174  Q_DECLARE_FLAGS( RenderHints, RenderHint )
1175 
1176 
1181  enum FormType {
1184  XfaForm
1185  };
1186 
1196  void setColorDisplayProfile(void *outputProfileA);
1206  void setColorDisplayProfileName(const QString &name);
1214  void* colorRgbProfile() const;
1222  void *colorDisplayProfile() const;
1223 
1241  static Document *load(const QString & filePath,
1242  const QByteArray &ownerPassword=QByteArray(),
1243  const QByteArray &userPassword=QByteArray());
1244 
1269  static Document *load(QIODevice *device,
1270  const QByteArray &ownerPassword=QByteArray(),
1271  const QByteArray &userPassword=QByteArray());
1272 
1294  static Document *loadFromData(const QByteArray &fileContents,
1295  const QByteArray &ownerPassword=QByteArray(),
1296  const QByteArray &userPassword=QByteArray());
1297 
1308  Page *page(int index) const;
1309 
1322  Page *page(const QString &label) const;
1323 
1327  int numPages() const;
1328 
1334  PageMode pageMode() const;
1335 
1341  PageLayout pageLayout() const;
1342 
1349  Qt::LayoutDirection textDirection() const;
1350 
1359  bool unlock(const QByteArray &ownerPassword, const QByteArray &userPassword);
1360 
1364  bool isLocked() const;
1365 
1381  QDateTime date( const QString & type ) const;
1382 
1388  bool setDate( const QString & key, const QDateTime & val );
1389 
1393  QDateTime creationDate() const;
1394 
1400  bool setCreationDate( const QDateTime & val );
1401 
1405  QDateTime modificationDate() const;
1406 
1412  bool setModificationDate( const QDateTime & val );
1413 
1430  QString info( const QString & type ) const;
1431 
1437  bool setInfo( const QString & key, const QString & val );
1438 
1442  QString title() const;
1443 
1449  bool setTitle( const QString & val );
1450 
1454  QString author() const;
1455 
1461  bool setAuthor( const QString & val );
1462 
1466  QString subject() const;
1467 
1473  bool setSubject( const QString & val );
1474 
1478  QString keywords() const;
1479 
1485  bool setKeywords( const QString & val );
1486 
1490  QString creator() const;
1491 
1497  bool setCreator( const QString & val );
1498 
1502  QString producer() const;
1503 
1509  bool setProducer( const QString & val );
1510 
1516  bool removeInfo();
1517 
1521  QStringList infoKeys() const;
1522 
1526  bool isEncrypted() const;
1527 
1534  bool isLinearized() const;
1535 
1540  bool okToPrint() const;
1541 
1546  bool okToPrintHighRes() const;
1547 
1555  bool okToChange() const;
1556 
1561  bool okToCopy() const;
1562 
1568  bool okToAddNotes() const;
1569 
1577  bool okToFillForm() const;
1578 
1584  bool okToCreateFormFields() const;
1585 
1591  bool okToExtractForAccessibility() const;
1592 
1600  bool okToAssemble() const;
1601 
1613  void getPdfVersion(int *major, int *minor) const;
1614 
1626  QList<FontInfo> fonts() const;
1627 
1643  FontIterator* newFontIterator( int startPage = 0 ) const;
1644 
1650  QByteArray fontData(const FontInfo &fi) const;
1651 
1658  QList<EmbeddedFile*> embeddedFiles() const;
1659 
1663  bool hasEmbeddedFiles() const;
1664 
1688  QDomDocument *toc() const;
1689 
1697  QVector<OutlineItem> outline() const;
1698 
1707  LinkDestination *linkDestination( const QString &name );
1708 
1714  void setPaperColor(const QColor &color);
1720  QColor paperColor() const;
1721 
1729  void setRenderBackend( RenderBackend backend );
1737  RenderBackend renderBackend() const;
1738 
1744  static QSet<RenderBackend> availableRenderBackends();
1745 
1755  void setRenderHint( RenderHint hint, bool on = true );
1761  RenderHints renderHints() const;
1762 
1770  PSConverter *psConverter() const;
1771 
1779  PDFConverter *pdfConverter() const;
1780 
1786  QString metadata() const;
1787 
1800  bool hasOptionalContent() const;
1801 
1809  OptContentModel *optionalContentModel();
1810 
1819  QStringList scripts() const;
1820 
1833  bool getPdfId(QByteArray *permanentId, QByteArray *updateId) const;
1834 
1840  FormType formType() const;
1841 
1847  QVector<int> formCalculateOrder() const;
1848 
1852  ~Document();
1853 
1854  private:
1855  Q_DISABLE_COPY(Document)
1856 
1857  DocumentData *m_doc;
1858 
1859  Document(DocumentData *dataA);
1860  };
1861 
1862  class BaseConverterPrivate;
1863  class PSConverterPrivate;
1864  class PDFConverterPrivate;
1872  class POPPLER_QT5_EXPORT BaseConverter
1873  {
1874  friend class Document;
1875  public:
1879  virtual ~BaseConverter();
1880 
1882  void setOutputFileName(const QString &outputFileName);
1883 
1889  void setOutputDevice(QIODevice *device);
1890 
1896  virtual bool convert() = 0;
1897 
1898  enum Error
1899  {
1900  NoError,
1901  FileLockedError,
1902  OpenOutputError,
1903  NotSupportedInputFileError
1904  };
1905 
1910  Error lastError() const;
1911 
1912  protected:
1914  BaseConverter(BaseConverterPrivate &dd);
1915  Q_DECLARE_PRIVATE(BaseConverter)
1916  BaseConverterPrivate *d_ptr;
1918 
1919  private:
1920  Q_DISABLE_COPY(BaseConverter)
1921  };
1922 
1939  class POPPLER_QT5_EXPORT PSConverter : public BaseConverter
1940  {
1941  friend class Document;
1942  public:
1948  enum PSOption {
1949  Printing = 0x00000001,
1950  StrictMargins = 0x00000002,
1951  ForceRasterization = 0x00000004,
1952  PrintToEPS = 0x00000008,
1953  HideAnnotations = 0x00000010
1954  };
1955  Q_DECLARE_FLAGS( PSOptions, PSOption )
1956 
1957 
1960  ~PSConverter() override;
1961 
1963  void setPageList(const QList<int> &pageList);
1964 
1968  void setTitle(const QString &title);
1969 
1973  void setHDPI(double hDPI);
1974 
1978  void setVDPI(double vDPI);
1979 
1983  void setRotate(int rotate);
1984 
1988  void setPaperWidth(int paperWidth);
1989 
1993  void setPaperHeight(int paperHeight);
1994 
1998  void setRightMargin(int marginRight);
1999 
2003  void setBottomMargin(int marginBottom);
2004 
2008  void setLeftMargin(int marginLeft);
2009 
2013  void setTopMargin(int marginTop);
2014 
2022  void setStrictMargins(bool strictMargins);
2023 
2025  void setForceRasterize(bool forceRasterize);
2026 
2032  void setPSOptions(PSOptions options);
2033 
2041  PSOptions psOptions() const;
2042 
2050  void setPageConvertedCallback(void (* callback)(int page, void *payload), void *payload);
2051 
2052  bool convert() override;
2053 
2054  private:
2055  Q_DECLARE_PRIVATE(PSConverter)
2056  Q_DISABLE_COPY(PSConverter)
2057 
2058  PSConverter(DocumentData *document);
2059  };
2060 
2066  class POPPLER_QT5_EXPORT PDFConverter : public BaseConverter
2067  {
2068  friend class Document;
2069  public:
2073  enum PDFOption {
2074  WithChanges = 0x00000001
2075  };
2076  Q_DECLARE_FLAGS( PDFOptions, PDFOption )
2077 
2078 
2081  ~PDFConverter() override;
2082 
2086  void setPDFOptions(PDFOptions options);
2090  PDFOptions pdfOptions() const;
2091 
2092  bool convert() override;
2093 
2094  private:
2095  Q_DECLARE_PRIVATE(PDFConverter)
2096  Q_DISABLE_COPY(PDFConverter)
2097 
2098  PDFConverter(DocumentData *document);
2099  };
2100 
2104  POPPLER_QT5_EXPORT Q_DECL_DEPRECATED QDateTime convertDate( char *dateString );
2105 
2111  POPPLER_QT5_EXPORT QDateTime convertDate( const char *dateString );
2112 
2118  POPPLER_QT5_EXPORT bool isCmsAvailable();
2119 
2125  POPPLER_QT5_EXPORT bool isOverprintPreviewAvailable();
2126 
2127  class SoundData;
2137  class POPPLER_QT5_EXPORT SoundObject {
2138  public:
2142  enum SoundType {
2144  Embedded
2145  };
2146 
2154  ALaw
2155  };
2156 
2158  SoundObject(Sound *popplersound);
2160 
2161  ~SoundObject();
2162 
2166  SoundType soundType() const;
2167 
2171  QString url() const;
2172 
2176  QByteArray data() const;
2177 
2181  double samplingRate() const;
2182 
2186  int channels() const;
2187 
2191  int bitsPerSample() const;
2192 
2196  SoundEncoding soundEncoding() const;
2197 
2198  private:
2199  Q_DISABLE_COPY(SoundObject)
2200 
2201  SoundData *m_soundData;
2202  };
2203 
2204  class MovieData;
2210  class POPPLER_QT5_EXPORT MovieObject {
2211  friend class AnnotationPrivate;
2212  public:
2216  enum PlayMode {
2220  PlayPalindrome
2221  };
2222 
2223  ~MovieObject();
2224 
2228  QString url() const;
2229 
2233  QSize size() const;
2234 
2238  int rotation() const;
2239 
2243  bool showControls() const;
2244 
2248  PlayMode playMode() const;
2249 
2254  bool showPosterImage() const;
2255 
2262  QImage posterImage() const;
2263 
2264  private:
2266  MovieObject( AnnotMovie *ann );
2268 
2269  Q_DISABLE_COPY(MovieObject)
2270 
2271  MovieData *m_movieData;
2272  };
2273 
2274 }
2275 
2276 Q_DECLARE_OPERATORS_FOR_FLAGS(Poppler::Page::PainterFlags)
2277 Q_DECLARE_OPERATORS_FOR_FLAGS(Poppler::Page::SearchFlags)
2278 Q_DECLARE_OPERATORS_FOR_FLAGS(Poppler::Document::RenderHints)
2279 Q_DECLARE_OPERATORS_FOR_FLAGS(Poppler::PDFConverter::PDFOptions)
2280 Q_DECLARE_OPERATORS_FOR_FLAGS(Poppler::PSConverter::PSOptions)
2281 
2282 #endif
Poppler::SoundObject::SoundEncoding
SoundEncoding
The encoding format used for the sound.
Definition: poppler-qt5.h:2150
Poppler::Page::SearchDirection
SearchDirection
The starting point for a search.
Definition: poppler-qt5.h:734
Poppler::FontInfo::Type
Type
The type of font.
Definition: poppler-qt5.h:172
Poppler::SoundObject
Container class for a sound file in a PDF document.
Definition: poppler-qt5.h:2137
Poppler::PopplerDebugFunc
void(* PopplerDebugFunc)(const QString &, const QVariant &)
Debug/error function.
Definition: poppler-qt5.h:86
Poppler::Document::UseNone
No mode - neither document outline nor thumbnail images are visible.
Definition: poppler-qt5.h:1127
Poppler::Document::NoLayout
Layout not specified.
Definition: poppler-qt5.h:1139
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:166
Poppler::Document::OneColumn
Display a single column of pages.
Definition: poppler-qt5.h:1141
Poppler::Page::SearchMode
SearchMode
The type of search to perform.
Definition: poppler-qt5.h:742
Poppler::Annotation
Annotation class holding properties shared by all annotations.
Definition: poppler-annotation.h:174
Poppler::Page::PhysicalLayout
The text is layouted to resemble the real page layout.
Definition: poppler-qt5.h:447
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:110
Poppler::MovieObject::PlayMode
PlayMode
The play mode for playing the movie.
Definition: poppler-qt5.h:2216
Poppler::SoundObject::muLaw
mu-law-encoded samples
Definition: poppler-qt5.h:2153
Poppler::Page::Seascape
Seascape orientation (portrait, with 270 degrees clockwise rotation)
Definition: poppler-qt5.h:892
Poppler::Document::AcroForm
AcroForm.
Definition: poppler-qt5.h:1183
Poppler::SoundObject::SoundType
SoundType
The type of sound.
Definition: poppler-qt5.h:2142
Poppler::Page::SearchFlag
SearchFlag
Flags to modify the search behaviour.
Definition: poppler-qt5.h:749
Poppler::MovieObject
Container class for a movie object in a PDF document.
Definition: poppler-qt5.h:2210
Poppler::Document::PageMode
PageMode
The page mode.
Definition: poppler-qt5.h:1126
Poppler::Document::SinglePage
Display a single page.
Definition: poppler-qt5.h:1140
Poppler::Page::Opening
The action when a page is "opened".
Definition: poppler-qt5.h:438
Poppler::Document::RenderBackend
RenderBackend
The render backends available.
Definition: poppler-qt5.h:1153
Poppler::setDebugErrorFunction
void setDebugErrorFunction(PopplerDebugFunc debugFunction, const QVariant &closure)
Set a new debug/error output function.
Poppler::Document
PDF document.
Definition: poppler-qt5.h:1118
Poppler::Document::UseThumbs
Thumbnail images visible.
Definition: poppler-qt5.h:1129
Poppler::PDFConverter::PDFOption
PDFOption
Options for the PDF export.
Definition: poppler-qt5.h:2073
Poppler::LinkDestination
A destination.
Definition: poppler-link.h:68
Poppler::MovieObject::PlayRepeat
Play continuously until stopped.
Definition: poppler-qt5.h:2219
Poppler::SoundObject::Signed
Twos-complement values.
Definition: poppler-qt5.h:2152
Poppler::Document::TwoPageLeft
Display the pages two at a time, with odd-numbered pages on the left.
Definition: poppler-qt5.h:1144
Poppler::Page
A page in a document.
Definition: poppler-qt5.h:417
Poppler::FontIterator
Definition: poppler-qt5.h:290
Poppler::Document::SplashBackend
Splash backend.
Definition: poppler-qt5.h:1154
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:428
Poppler::BaseConverter
Base converter.
Definition: poppler-qt5.h:1872
Poppler::Page::TextLayout
TextLayout
How the text is going to be returned.
Definition: poppler-qt5.h:446
Poppler::Document::UseOutlines
Document outline visible.
Definition: poppler-qt5.h:1128
Poppler::PSConverter::PSOption
PSOption
Options for the PS export.
Definition: poppler-qt5.h:1948
Poppler::PDFConverter
Converts a PDF to PDF (thus saves a copy of the document).
Definition: poppler-qt5.h:2066
Poppler::Page::Orientation
Orientation
Types of orientations that are possible.
Definition: poppler-qt5.h:889
Poppler::Page::Portrait
Normal portrait orientation.
Definition: poppler-qt5.h:891
Poppler::Page::NextResult
Find the next result, moving "down the page".
Definition: poppler-qt5.h:735
Poppler::Document::FormType
FormType
Form types.
Definition: poppler-qt5.h:1181
Poppler::EmbeddedFile
Container class for an embedded file with a PDF document.
Definition: poppler-qt5.h:328
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:455
Poppler::PSConverter
Definition: poppler-qt5.h:1939
Poppler::MovieObject::PlayOpen
Like PlayOnce, but leaving the controls open.
Definition: poppler-qt5.h:2218
Poppler::Document::UseOC
Optional content group panel visible.
Definition: poppler-qt5.h:1131
Poppler::Document::PageLayout
PageLayout
The page layout.
Definition: poppler-qt5.h:1138
Poppler::Document::FullScreen
Fullscreen mode (no menubar, windows controls etc)
Definition: poppler-qt5.h:1130
Poppler::Document::NoForm
Document doesn't contain forms.
Definition: poppler-qt5.h:1182
Poppler::SoundObject::Raw
Raw encoding, with unspecified or unsigned values in the range [ 0, 2^B - 1 ].
Definition: poppler-qt5.h:2151
Poppler::Document::RenderHint
RenderHint
The render hints available.
Definition: poppler-qt5.h:1163
Poppler::Page::Landscape
Landscape orientation (portrait, with 90 degrees clockwise rotation )
Definition: poppler-qt5.h:890
Poppler::Document::TwoColumnRight
Display the pages in two columns, with odd-numbered pages on the right.
Definition: poppler-qt5.h:1143
Poppler::OutlineItem
Item in the outline of a PDF document.
Definition: poppler-qt5.h:998
Poppler::Page::PageAction
PageAction
The kinds of page actions.
Definition: poppler-qt5.h:437
Poppler::SoundObject::External
The real sound file is external.
Definition: poppler-qt5.h:2143
Poppler::MovieObject::PlayOnce
Play the movie once, closing the movie controls at the end.
Definition: poppler-qt5.h:2217
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
Display the pages in two columns, with odd-numbered pages on the left.
Definition: poppler-qt5.h:1142