Poppler Qt5  0.74.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, 2018, 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  *
23  * This program is free software; you can redistribute it and/or modify
24  * it under the terms of the GNU General Public License as published by
25  * the Free Software Foundation; either version 2, or (at your option)
26  * any later version.
27  *
28  * This program is distributed in the hope that it will be useful,
29  * but WITHOUT ANY WARRANTY; without even the implied warranty of
30  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31  * GNU General Public License for more details.
32  *
33  * You should have received a copy of the GNU General Public License
34  * along with this program; if not, write to the Free Software
35  * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
36  */
37 
38 #ifndef __POPPLER_QT_H__
39 #define __POPPLER_QT_H__
40 
41 #include "poppler-annotation.h"
42 #include "poppler-link.h"
43 #include "poppler-optcontent.h"
44 #include "poppler-page-transition.h"
45 
46 #include <QtCore/QByteArray>
47 #include <QtCore/QDateTime>
48 #include <QtCore/QSet>
49 #include <QtXml/QDomDocument>
50 #include "poppler-export.h"
51 
52 class EmbFile;
53 class Sound;
54 class AnnotMovie;
55 
59 namespace Poppler {
60 
61  class Document;
62  class DocumentData;
63 
64  class PageData;
65 
66  class FormField;
67 
68  class TextBoxData;
69 
70  class PDFConverter;
71  class PSConverter;
72 
73  struct OutlineItemData;
74 
84  typedef void (*PopplerDebugFunc)(const QString & /*message*/, const QVariant & /*closure*/);
85 
97  POPPLER_QT5_EXPORT void setDebugErrorFunction(PopplerDebugFunc debugFunction, const QVariant &closure);
98 
108  class POPPLER_QT5_EXPORT TextBox {
109  friend class Page;
110  public:
116  TextBox(const QString& text, const QRectF &bBox);
120  ~TextBox();
121 
125  QString text() const;
126 
133  QRectF boundingBox() const;
134 
140  TextBox *nextWord() const;
141 
145  QRectF charBoundingBox(int i) const;
146 
150  bool hasSpaceAfter() const;
151 
152  private:
153  Q_DISABLE_COPY(TextBox)
154 
155  TextBoxData *m_data;
156  };
157 
158 
159  class FontInfoData;
164  class POPPLER_QT5_EXPORT FontInfo {
165  friend class Document;
166  public:
170  enum Type {
171  unknown,
172  Type1,
173  Type1C,
174  Type1COT,
175  Type3,
176  TrueType,
177  TrueTypeOT,
178  CIDType0,
179  CIDType0C,
180  CIDType0COT,
181  CIDTrueType,
182  CIDTrueTypeOT
183  };
184 
186 
189  FontInfo();
190 
194  FontInfo( const FontInfoData &fid );
196 
200  FontInfo( const FontInfo &fi );
201 
205  ~FontInfo();
206 
210  QString name() const;
211 
216  QString file() const;
217 
223  bool isEmbedded() const;
224 
231  bool isSubset() const;
232 
240  Type type() const;
241 
250  QString typeName() const;
251 
255  FontInfo& operator=( const FontInfo &fi );
256 
257  private:
258  FontInfoData *m_data;
259  };
260 
261 
262  class FontIteratorData;
282  class POPPLER_QT5_EXPORT FontIterator {
283  friend class Document;
284  friend class DocumentData;
285  public:
289  ~FontIterator();
290 
295  QList<FontInfo> next();
296 
301  bool hasNext() const;
302 
306  int currentPage() const;
307 
308  private:
309  Q_DISABLE_COPY( FontIterator )
310  FontIterator( int, DocumentData *dd );
311 
312  FontIteratorData *d;
313  };
314 
315 
316  class EmbeddedFileData;
320  class POPPLER_QT5_EXPORT EmbeddedFile {
321  friend class DocumentData;
322  friend class AnnotationPrivate;
323  public:
325  EmbeddedFile(EmbFile *embfile);
327 
331  ~EmbeddedFile();
332 
336  QString name() const;
337 
343  QString description() const;
344 
350  int size() const;
351 
355  QDateTime modDate() const;
356 
360  QDateTime createDate() const;
361 
367  QByteArray checksum() const;
368 
374  QString mimeType() const;
375 
379  QByteArray data();
380 
386  bool isValid() const;
387 
391  //QDataStream dataStream() const;
392 
393  private:
394  Q_DISABLE_COPY(EmbeddedFile)
395  EmbeddedFile(EmbeddedFileData &dd);
396 
397  EmbeddedFileData *m_embeddedFile;
398  };
399 
400 
409  class POPPLER_QT5_EXPORT Page {
410  friend class Document;
411  public:
415  ~Page();
416 
420  enum Rotation { Rotate0 = 0,
421  Rotate90 = 1,
422  Rotate180 = 2,
423  Rotate270 = 3
424  };
425 
429  enum PageAction {
431  Closing
432  };
433 
438  enum TextLayout {
440  RawOrderLayout
441  };
442 
447  enum PainterFlag {
448  NoPainterFlags = 0x00000000,
449 
456  DontSaveAndRestore = 0x00000001
457  };
458  Q_DECLARE_FLAGS( PainterFlags, PainterFlag )
459 
460 
498  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;
499 
509  typedef void (*RenderToImagePartialUpdateFunc)(const QImage & /*image*/, const QVariant & /*closure*/);
510 
519  typedef bool (*ShouldRenderToImagePartialQueryFunc)(const QVariant & /*closure*/);
520 
570  QImage renderToImage(double xres, double yres,
571  int x, int y, int w, int h, Rotation rotate,
572  RenderToImagePartialUpdateFunc partialUpdateCallback,
573  ShouldRenderToImagePartialQueryFunc shouldDoPartialUpdateCallback,
574  const QVariant &closure
575  ) const;
576 
584  typedef bool (*ShouldAbortQueryFunc)(const QVariant & /*closure*/);
585 
639  QImage renderToImage(double xres, double yres,
640  int x, int y, int w, int h, Rotation rotate,
641  RenderToImagePartialUpdateFunc partialUpdateCallback,
642  ShouldRenderToImagePartialQueryFunc shouldDoPartialUpdateCallback,
643  ShouldAbortQueryFunc shouldAbortRenderCallback,
644  const QVariant &closure
645  ) const;
646 
689  bool renderToPainter(QPainter* painter, double xres=72.0, double yres=72.0, int x=-1, int y=-1, int w=-1, int h=-1,
690  Rotation rotate = Rotate0, PainterFlags flags = NoPainterFlags) const;
691 
700  QImage thumbnail() const;
701 
711  QString text(const QRectF &rect, TextLayout textLayout) const;
712 
721  QString text(const QRectF &rect) const;
722 
726  enum SearchDirection { FromTop,
728  PreviousResult
729  };
730 
734  enum SearchMode { CaseSensitive,
735  CaseInsensitive
736  };
737 
742  {
743  NoSearchFlags = 0x00000000,
744  IgnoreCase = 0x00000001,
745  WholeWords = 0x00000002,
746  IgnoreDiacritics = 0x00000004
747  };
750  Q_DECLARE_FLAGS( SearchFlags, SearchFlag )
751 
752 
763  Q_DECL_DEPRECATED bool search(const QString &text, double &rectLeft, double &rectTop, double &rectRight, double &rectBottom, SearchDirection direction, SearchMode caseSensitive, Rotation rotate = Rotate0) const;
764 
777  bool search(const QString &text, double &rectLeft, double &rectTop, double &rectRight, double &rectBottom, SearchDirection direction, SearchFlags flags = NoSearchFlags, Rotation rotate = Rotate0) const;
778 
790  Q_DECL_DEPRECATED QList<QRectF> search(const QString &text, SearchMode caseSensitive, Rotation rotate = Rotate0) const;
791 
803  QList<QRectF> search(const QString &text, SearchFlags flags = NoSearchFlags, Rotation rotate = Rotate0) const;
804 
821  QList<TextBox*> textList(Rotation rotate = Rotate0) const;
822 
847  QList<TextBox*> textList(Rotation rotate, ShouldAbortQueryFunc shouldAbortExtractionCallback, const QVariant &closure) const;
848 
852  QSizeF pageSizeF() const;
853 
857  QSize pageSize() const;
858 
869  PageTransition *transition() const;
870 
876  Link *action( PageAction act ) const;
877 
881  enum Orientation {
885  UpsideDown
886  };
887 
891  Orientation orientation() const;
892 
896  void defaultCTM(double *CTM, double dpiX, double dpiY, int rotate, bool upsideDown);
897 
901  QList<Link*> links() const;
902 
911  QList<Annotation*> annotations() const;
912 
913 
926  QList<Annotation*> annotations(const QSet<Annotation::SubType> &subtypes) const;
927 
935  void addAnnotation( const Annotation *ann );
936 
943  void removeAnnotation( const Annotation *ann );
944 
951  QList<FormField*> formFields() const;
952 
960  double duration() const;
961 
967  QString label() const;
968 
974  int index() const;
975 
976  private:
977  Q_DISABLE_COPY(Page)
978 
979  Page(DocumentData *doc, int index);
980  PageData *m_page;
981  };
982 
990  class POPPLER_QT5_EXPORT OutlineItem {
991  friend class Document;
992  public:
996  OutlineItem();
997  ~OutlineItem();
998 
999  OutlineItem(const OutlineItem &other);
1000  OutlineItem &operator=(const OutlineItem &other);
1001 
1002  OutlineItem(OutlineItem &&other);
1003  OutlineItem &operator=(OutlineItem &&other);
1004 
1008  bool isNull() const;
1009 
1013  QString name() const;
1014 
1018  bool isOpen() const;
1019 
1025  QSharedPointer<const LinkDestination> destination() const;
1026 
1032  QString externalFileName() const;
1033 
1039  QString uri() const;
1040 
1046  bool hasChildren() const;
1047 
1053  QVector<OutlineItem> children() const;
1054 
1055  private:
1056  OutlineItem(OutlineItemData *data);
1057  OutlineItemData *m_data;
1058  };
1059 
1110  class POPPLER_QT5_EXPORT Document {
1111  friend class Page;
1112  friend class DocumentData;
1113 
1114  public:
1118  enum PageMode {
1124  UseAttach
1125  };
1126 
1130  enum PageLayout {
1137  TwoPageRight
1138  };
1139 
1147  ArthurBackend
1148  };
1149 
1155  enum RenderHint {
1156  Antialiasing = 0x00000001,
1157  TextAntialiasing = 0x00000002,
1158  TextHinting = 0x00000004,
1159  TextSlightHinting = 0x00000008,
1160  OverprintPreview = 0x00000010,
1161  ThinLineSolid = 0x00000020,
1162  ThinLineShape = 0x00000040,
1163  IgnorePaperColor = 0x00000080,
1164  HideAnnotations = 0x00000100
1165  };
1166  Q_DECLARE_FLAGS( RenderHints, RenderHint )
1167 
1168 
1173  enum FormType {
1176  XfaForm
1177  };
1178 
1188  void setColorDisplayProfile(void *outputProfileA);
1198  void setColorDisplayProfileName(const QString &name);
1206  void* colorRgbProfile() const;
1214  void *colorDisplayProfile() const;
1215 
1233  static Document *load(const QString & filePath,
1234  const QByteArray &ownerPassword=QByteArray(),
1235  const QByteArray &userPassword=QByteArray());
1236 
1258  static Document *loadFromData(const QByteArray &fileContents,
1259  const QByteArray &ownerPassword=QByteArray(),
1260  const QByteArray &userPassword=QByteArray());
1261 
1272  Page *page(int index) const;
1273 
1286  Page *page(const QString &label) const;
1287 
1291  int numPages() const;
1292 
1298  PageMode pageMode() const;
1299 
1305  PageLayout pageLayout() const;
1306 
1313  Qt::LayoutDirection textDirection() const;
1314 
1323  bool unlock(const QByteArray &ownerPassword, const QByteArray &userPassword);
1324 
1328  bool isLocked() const;
1329 
1345  QDateTime date( const QString & data ) const;
1346 
1352  bool setDate( const QString & key, const QDateTime & val );
1353 
1357  QDateTime creationDate() const;
1358 
1364  bool setCreationDate( const QDateTime & val );
1365 
1369  QDateTime modificationDate() const;
1370 
1376  bool setModificationDate( const QDateTime & val );
1377 
1394  QString info( const QString & data ) const;
1395 
1401  bool setInfo( const QString & key, const QString & val );
1402 
1406  QString title() const;
1407 
1413  bool setTitle( const QString & val );
1414 
1418  QString author() const;
1419 
1425  bool setAuthor( const QString & val );
1426 
1430  QString subject() const;
1431 
1437  bool setSubject( const QString & val );
1438 
1442  QString keywords() const;
1443 
1449  bool setKeywords( const QString & val );
1450 
1454  QString creator() const;
1455 
1461  bool setCreator( const QString & val );
1462 
1466  QString producer() const;
1467 
1473  bool setProducer( const QString & val );
1474 
1480  bool removeInfo();
1481 
1485  QStringList infoKeys() const;
1486 
1490  bool isEncrypted() const;
1491 
1498  bool isLinearized() const;
1499 
1504  bool okToPrint() const;
1505 
1510  bool okToPrintHighRes() const;
1511 
1519  bool okToChange() const;
1520 
1525  bool okToCopy() const;
1526 
1532  bool okToAddNotes() const;
1533 
1541  bool okToFillForm() const;
1542 
1548  bool okToCreateFormFields() const;
1549 
1555  bool okToExtractForAccessibility() const;
1556 
1564  bool okToAssemble() const;
1565 
1577  void getPdfVersion(int *major, int *minor) const;
1578 
1590  QList<FontInfo> fonts() const;
1591 
1607  FontIterator* newFontIterator( int startPage = 0 ) const;
1608 
1614  QByteArray fontData(const FontInfo &font) const;
1615 
1622  QList<EmbeddedFile*> embeddedFiles() const;
1623 
1627  bool hasEmbeddedFiles() const;
1628 
1652  QDomDocument *toc() const;
1653 
1661  QVector<OutlineItem> outline() const;
1662 
1671  LinkDestination *linkDestination( const QString &name );
1672 
1678  void setPaperColor(const QColor &color);
1684  QColor paperColor() const;
1685 
1693  void setRenderBackend( RenderBackend backend );
1701  RenderBackend renderBackend() const;
1702 
1708  static QSet<RenderBackend> availableRenderBackends();
1709 
1719  void setRenderHint( RenderHint hint, bool on = true );
1725  RenderHints renderHints() const;
1726 
1734  PSConverter *psConverter() const;
1735 
1743  PDFConverter *pdfConverter() const;
1744 
1750  QString metadata() const;
1751 
1764  bool hasOptionalContent() const;
1765 
1773  OptContentModel *optionalContentModel();
1774 
1783  QStringList scripts() const;
1784 
1797  bool getPdfId(QByteArray *permanentId, QByteArray *updateId) const;
1798 
1804  FormType formType() const;
1805 
1811  QVector<int> formCalculateOrder() const;
1812 
1816  ~Document();
1817 
1818  private:
1819  Q_DISABLE_COPY(Document)
1820 
1821  DocumentData *m_doc;
1822 
1823  Document(DocumentData *dataA);
1824  };
1825 
1826  class BaseConverterPrivate;
1827  class PSConverterPrivate;
1828  class PDFConverterPrivate;
1836  class POPPLER_QT5_EXPORT BaseConverter
1837  {
1838  friend class Document;
1839  public:
1843  virtual ~BaseConverter();
1844 
1846  void setOutputFileName(const QString &outputFileName);
1847 
1853  void setOutputDevice(QIODevice *device);
1854 
1860  virtual bool convert() = 0;
1861 
1862  enum Error
1863  {
1864  NoError,
1865  FileLockedError,
1866  OpenOutputError,
1867  NotSupportedInputFileError
1868  };
1869 
1874  Error lastError() const;
1875 
1876  protected:
1878  BaseConverter(BaseConverterPrivate &dd);
1879  Q_DECLARE_PRIVATE(BaseConverter)
1880  BaseConverterPrivate *d_ptr;
1882 
1883  private:
1884  Q_DISABLE_COPY(BaseConverter)
1885  };
1886 
1903  class POPPLER_QT5_EXPORT PSConverter : public BaseConverter
1904  {
1905  friend class Document;
1906  public:
1912  enum PSOption {
1913  Printing = 0x00000001,
1914  StrictMargins = 0x00000002,
1915  ForceRasterization = 0x00000004,
1916  PrintToEPS = 0x00000008,
1917  HideAnnotations = 0x00000010
1918  };
1919  Q_DECLARE_FLAGS( PSOptions, PSOption )
1920 
1921 
1924  ~PSConverter();
1925 
1927  void setPageList(const QList<int> &pageList);
1928 
1932  void setTitle(const QString &title);
1933 
1937  void setHDPI(double hDPI);
1938 
1942  void setVDPI(double vDPI);
1943 
1947  void setRotate(int rotate);
1948 
1952  void setPaperWidth(int paperWidth);
1953 
1957  void setPaperHeight(int paperHeight);
1958 
1962  void setRightMargin(int marginRight);
1963 
1967  void setBottomMargin(int marginBottom);
1968 
1972  void setLeftMargin(int marginLeft);
1973 
1977  void setTopMargin(int marginTop);
1978 
1986  void setStrictMargins(bool strictMargins);
1987 
1989  void setForceRasterize(bool forceRasterize);
1990 
1996  void setPSOptions(PSOptions options);
1997 
2005  PSOptions psOptions() const;
2006 
2014  void setPageConvertedCallback(void (* callback)(int page, void *payload), void *payload);
2015 
2016  bool convert() override;
2017 
2018  private:
2019  Q_DECLARE_PRIVATE(PSConverter)
2020  Q_DISABLE_COPY(PSConverter)
2021 
2022  PSConverter(DocumentData *document);
2023  };
2024 
2030  class POPPLER_QT5_EXPORT PDFConverter : public BaseConverter
2031  {
2032  friend class Document;
2033  public:
2037  enum PDFOption {
2038  WithChanges = 0x00000001
2039  };
2040  Q_DECLARE_FLAGS( PDFOptions, PDFOption )
2041 
2042 
2045  ~PDFConverter();
2046 
2050  void setPDFOptions(PDFOptions options);
2054  PDFOptions pdfOptions() const;
2055 
2056  bool convert() override;
2057 
2058  private:
2059  Q_DECLARE_PRIVATE(PDFConverter)
2060  Q_DISABLE_COPY(PDFConverter)
2061 
2062  PDFConverter(DocumentData *document);
2063  };
2064 
2068  POPPLER_QT5_EXPORT Q_DECL_DEPRECATED QDateTime convertDate( char *dateString );
2069 
2075  POPPLER_QT5_EXPORT QDateTime convertDate( const char *dateString );
2076 
2082  POPPLER_QT5_EXPORT bool isCmsAvailable();
2083 
2089  POPPLER_QT5_EXPORT bool isOverprintPreviewAvailable();
2090 
2091  class SoundData;
2101  class POPPLER_QT5_EXPORT SoundObject {
2102  public:
2106  enum SoundType {
2108  Embedded
2109  };
2110 
2118  ALaw
2119  };
2120 
2122  SoundObject(Sound *popplersound);
2124 
2125  ~SoundObject();
2126 
2130  SoundType soundType() const;
2131 
2135  QString url() const;
2136 
2140  QByteArray data() const;
2141 
2145  double samplingRate() const;
2146 
2150  int channels() const;
2151 
2155  int bitsPerSample() const;
2156 
2160  SoundEncoding soundEncoding() const;
2161 
2162  private:
2163  Q_DISABLE_COPY(SoundObject)
2164 
2165  SoundData *m_soundData;
2166  };
2167 
2168  class MovieData;
2174  class POPPLER_QT5_EXPORT MovieObject {
2175  friend class AnnotationPrivate;
2176  public:
2180  enum PlayMode {
2184  PlayPalindrome
2185  };
2186 
2187  ~MovieObject();
2188 
2192  QString url() const;
2193 
2197  QSize size() const;
2198 
2202  int rotation() const;
2203 
2207  bool showControls() const;
2208 
2212  PlayMode playMode() const;
2213 
2218  bool showPosterImage() const;
2219 
2226  QImage posterImage() const;
2227 
2228  private:
2230  MovieObject( AnnotMovie *ann );
2232 
2233  Q_DISABLE_COPY(MovieObject)
2234 
2235  MovieData *m_movieData;
2236  };
2237 
2238 }
2239 
2240 Q_DECLARE_OPERATORS_FOR_FLAGS(Poppler::Page::PainterFlags)
2241 Q_DECLARE_OPERATORS_FOR_FLAGS(Poppler::Page::SearchFlags)
2242 Q_DECLARE_OPERATORS_FOR_FLAGS(Poppler::Document::RenderHints)
2243 Q_DECLARE_OPERATORS_FOR_FLAGS(Poppler::PDFConverter::PDFOptions)
2244 Q_DECLARE_OPERATORS_FOR_FLAGS(Poppler::PSConverter::PSOptions)
2245 
2246 #endif
Converts a PDF to PDF (thus saves a copy of the document).
Definition: poppler-qt5.h:2030
Play continuously until stopped.
Definition: poppler-qt5.h:2183
Like PlayOnce, but leaving the controls open.
Definition: poppler-qt5.h:2182
PageMode
The page mode.
Definition: poppler-qt5.h:1118
bool isOverprintPreviewAvailable()
Whether the overprint preview functionality is available.
SoundType
The type of sound.
Definition: poppler-qt5.h:2106
The real sound file is external.
Definition: poppler-qt5.h:2107
TextLayout
How the text is going to be returned.
Definition: poppler-qt5.h:438
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:108
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:1134
void(* PopplerDebugFunc)(const QString &, const QVariant &)
Debug/error function.
Definition: poppler-qt5.h:84
PDF document.
Definition: poppler-qt5.h:1110
Find the next result, moving "down the page".
Definition: poppler-qt5.h:727
Raw encoding, with unspecified or unsigned values in the range [ 0, 2^B - 1 ].
Definition: poppler-qt5.h:2115
Thumbnail images visible.
Definition: poppler-qt5.h:1121
Landscape orientation (portrait, with 90 degrees clockwise rotation )
Definition: poppler-qt5.h:882
Optional content group panel visible.
Definition: poppler-qt5.h:1123
Seascape orientation (portrait, with 270 degrees clockwise rotation)
Definition: poppler-qt5.h:884
Type
The type of font.
Definition: poppler-qt5.h:170
No mode - neither document outline nor thumbnail images are visible.
Definition: poppler-qt5.h:1119
Fullscreen mode (no menubar, windows controls etc)
Definition: poppler-qt5.h:1122
Container class for a sound file in a PDF document.
Definition: poppler-qt5.h:2101
Rotation
The type of rotation to apply for an operation.
Definition: poppler-qt5.h:420
PageLayout
The page layout.
Definition: poppler-qt5.h:1130
PageAction
The kinds of page actions.
Definition: poppler-qt5.h:429
PSOption
Options for the PS export.
Definition: poppler-qt5.h:1912
RenderHint
The render hints available.
Definition: poppler-qt5.h:1155
A page in a document.
Definition: poppler-qt5.h:409
Container class for an embedded file with a PDF document.
Definition: poppler-qt5.h:320
Splash backend.
Definition: poppler-qt5.h:1146
The text is layouted to resemble the real page layout.
Definition: poppler-qt5.h:439
Play the movie once, closing the movie controls at the end.
Definition: poppler-qt5.h:2181
Container class for a movie object in a PDF document.
Definition: poppler-qt5.h:2174
RenderBackend
The render backends available.
Definition: poppler-qt5.h:1145
PlayMode
The play mode for playing the movie.
Definition: poppler-qt5.h:2180
Document doesn't contain forms.
Definition: poppler-qt5.h:1174
void setDebugErrorFunction(PopplerDebugFunc debugFunction, const QVariant &closure)
Set a new debug/error output function.
PDFOption
Options for the PDF export.
Definition: poppler-qt5.h:2037
Document outline visible.
Definition: poppler-qt5.h:1120
Display a single column of pages.
Definition: poppler-qt5.h:1133
Twos-complement values.
Definition: poppler-qt5.h:2116
Orientation
Types of orientations that are possible.
Definition: poppler-qt5.h:881
Model for optional content.
Definition: poppler-optcontent.h:49
Display a single page.
Definition: poppler-qt5.h:1132
The action when a page is "opened".
Definition: poppler-qt5.h:430
FormType
Form types.
Definition: poppler-qt5.h:1173
SearchFlag
Flags to modify the search behaviour.
Definition: poppler-qt5.h:741
Normal portrait orientation.
Definition: poppler-qt5.h:883
Definition: poppler-qt5.h:282
Container class for information about a font within a PDF document.
Definition: poppler-qt5.h:164
Display the pages two at a time, with odd-numbered pages on the left.
Definition: poppler-qt5.h:1136
Display the pages in two columns, with odd-numbered pages on the right.
Definition: poppler-qt5.h:1135
Item in the outline of a PDF document.
Definition: poppler-qt5.h:990
Layout not specified.
Definition: poppler-qt5.h:1131
QDateTime convertDate(char *dateString)
Conversion from PDF date string format to QDateTime.
SearchMode
The type of search to perform.
Definition: poppler-qt5.h:734
Base converter.
Definition: poppler-qt5.h:1836
AcroForm.
Definition: poppler-qt5.h:1175
SoundEncoding
The encoding format used for the sound.
Definition: poppler-qt5.h:2114
The Poppler Qt5 binding.
Definition: poppler-annotation.h:45
PainterFlag
Additional flags for the renderToPainter method.
Definition: poppler-qt5.h:447
SearchDirection
The starting point for a search.
Definition: poppler-qt5.h:726
mu-law-encoded samples
Definition: poppler-qt5.h:2117
Describes how a PDF file viewer shall perform the transition from one page to another.
Definition: poppler-page-transition.h:48
Definition: poppler-qt5.h:1903