Poppler Qt5  0.73.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, 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 
82  typedef void (*PopplerDebugFunc)(const QString & /*message*/, const QVariant & /*closure*/);
83 
95  POPPLER_QT5_EXPORT void setDebugErrorFunction(PopplerDebugFunc debugFunction, const QVariant &closure);
96 
106  class POPPLER_QT5_EXPORT TextBox {
107  friend class Page;
108  public:
114  TextBox(const QString& text, const QRectF &bBox);
118  ~TextBox();
119 
123  QString text() const;
124 
131  QRectF boundingBox() const;
132 
138  TextBox *nextWord() const;
139 
143  QRectF charBoundingBox(int i) const;
144 
148  bool hasSpaceAfter() const;
149 
150  private:
151  Q_DISABLE_COPY(TextBox)
152 
153  TextBoxData *m_data;
154  };
155 
156 
157  class FontInfoData;
162  class POPPLER_QT5_EXPORT FontInfo {
163  friend class Document;
164  public:
168  enum Type {
169  unknown,
170  Type1,
171  Type1C,
172  Type1COT,
173  Type3,
174  TrueType,
175  TrueTypeOT,
176  CIDType0,
177  CIDType0C,
178  CIDType0COT,
179  CIDTrueType,
180  CIDTrueTypeOT
181  };
182 
184 
187  FontInfo();
188 
192  FontInfo( const FontInfoData &fid );
194 
198  FontInfo( const FontInfo &fi );
199 
203  ~FontInfo();
204 
208  QString name() const;
209 
214  QString file() const;
215 
221  bool isEmbedded() const;
222 
229  bool isSubset() const;
230 
238  Type type() const;
239 
248  QString typeName() const;
249 
253  FontInfo& operator=( const FontInfo &fi );
254 
255  private:
256  FontInfoData *m_data;
257  };
258 
259 
260  class FontIteratorData;
280  class POPPLER_QT5_EXPORT FontIterator {
281  friend class Document;
282  friend class DocumentData;
283  public:
287  ~FontIterator();
288 
293  QList<FontInfo> next();
294 
299  bool hasNext() const;
300 
304  int currentPage() const;
305 
306  private:
307  Q_DISABLE_COPY( FontIterator )
308  FontIterator( int, DocumentData *dd );
309 
310  FontIteratorData *d;
311  };
312 
313 
314  class EmbeddedFileData;
318  class POPPLER_QT5_EXPORT EmbeddedFile {
319  friend class DocumentData;
320  friend class AnnotationPrivate;
321  public:
323  EmbeddedFile(EmbFile *embfile);
325 
329  ~EmbeddedFile();
330 
334  QString name() const;
335 
341  QString description() const;
342 
348  int size() const;
349 
353  QDateTime modDate() const;
354 
358  QDateTime createDate() const;
359 
365  QByteArray checksum() const;
366 
372  QString mimeType() const;
373 
377  QByteArray data();
378 
384  bool isValid() const;
385 
389  //QDataStream dataStream() const;
390 
391  private:
392  Q_DISABLE_COPY(EmbeddedFile)
393  EmbeddedFile(EmbeddedFileData &dd);
394 
395  EmbeddedFileData *m_embeddedFile;
396  };
397 
398 
407  class POPPLER_QT5_EXPORT Page {
408  friend class Document;
409  public:
413  ~Page();
414 
418  enum Rotation { Rotate0 = 0,
419  Rotate90 = 1,
420  Rotate180 = 2,
421  Rotate270 = 3
422  };
423 
427  enum PageAction {
429  Closing
430  };
431 
436  enum TextLayout {
438  RawOrderLayout
439  };
440 
445  enum PainterFlag {
446  NoPainterFlags = 0x00000000,
447 
454  DontSaveAndRestore = 0x00000001
455  };
456  Q_DECLARE_FLAGS( PainterFlags, PainterFlag )
457 
458 
496  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;
497 
507  typedef void (*RenderToImagePartialUpdateFunc)(const QImage & /*image*/, const QVariant & /*closure*/);
508 
517  typedef bool (*ShouldRenderToImagePartialQueryFunc)(const QVariant & /*closure*/);
518 
568  QImage renderToImage(double xres, double yres,
569  int x, int y, int w, int h, Rotation rotate,
570  RenderToImagePartialUpdateFunc partialUpdateCallback,
571  ShouldRenderToImagePartialQueryFunc shouldDoPartialUpdateCallback,
572  const QVariant &closure
573  ) const;
574 
582  typedef bool (*ShouldAbortQueryFunc)(const QVariant & /*closure*/);
583 
637  QImage renderToImage(double xres, double yres,
638  int x, int y, int w, int h, Rotation rotate,
639  RenderToImagePartialUpdateFunc partialUpdateCallback,
640  ShouldRenderToImagePartialQueryFunc shouldDoPartialUpdateCallback,
641  ShouldAbortQueryFunc shouldAbortRenderCallback,
642  const QVariant &closure
643  ) const;
644 
687  bool renderToPainter(QPainter* painter, double xres=72.0, double yres=72.0, int x=-1, int y=-1, int w=-1, int h=-1,
688  Rotation rotate = Rotate0, PainterFlags flags = NoPainterFlags) const;
689 
698  QImage thumbnail() const;
699 
709  QString text(const QRectF &rect, TextLayout textLayout) const;
710 
719  QString text(const QRectF &rect) const;
720 
724  enum SearchDirection { FromTop,
726  PreviousResult
727  };
728 
732  enum SearchMode { CaseSensitive,
733  CaseInsensitive
734  };
735 
740  {
741  NoSearchFlags = 0x00000000,
742  IgnoreCase = 0x00000001,
743  WholeWords = 0x00000002,
744  IgnoreDiacritics = 0x00000004
745  };
748  Q_DECLARE_FLAGS( SearchFlags, SearchFlag )
749 
750 
761  Q_DECL_DEPRECATED bool search(const QString &text, double &rectLeft, double &rectTop, double &rectRight, double &rectBottom, SearchDirection direction, SearchMode caseSensitive, Rotation rotate = Rotate0) const;
762 
775  bool search(const QString &text, double &rectLeft, double &rectTop, double &rectRight, double &rectBottom, SearchDirection direction, SearchFlags flags = NoSearchFlags, Rotation rotate = Rotate0) const;
776 
788  Q_DECL_DEPRECATED QList<QRectF> search(const QString &text, SearchMode caseSensitive, Rotation rotate = Rotate0) const;
789 
801  QList<QRectF> search(const QString &text, SearchFlags flags = NoSearchFlags, Rotation rotate = Rotate0) const;
802 
819  QList<TextBox*> textList(Rotation rotate = Rotate0) const;
820 
845  QList<TextBox*> textList(Rotation rotate, ShouldAbortQueryFunc shouldAbortExtractionCallback, const QVariant &closure) const;
846 
850  QSizeF pageSizeF() const;
851 
855  QSize pageSize() const;
856 
867  PageTransition *transition() const;
868 
874  Link *action( PageAction act ) const;
875 
879  enum Orientation {
883  UpsideDown
884  };
885 
889  Orientation orientation() const;
890 
894  void defaultCTM(double *CTM, double dpiX, double dpiY, int rotate, bool upsideDown);
895 
899  QList<Link*> links() const;
900 
909  QList<Annotation*> annotations() const;
910 
911 
924  QList<Annotation*> annotations(const QSet<Annotation::SubType> &subtypes) const;
925 
933  void addAnnotation( const Annotation *ann );
934 
941  void removeAnnotation( const Annotation *ann );
942 
949  QList<FormField*> formFields() const;
950 
958  double duration() const;
959 
965  QString label() const;
966 
972  int index() const;
973 
974  private:
975  Q_DISABLE_COPY(Page)
976 
977  Page(DocumentData *doc, int index);
978  PageData *m_page;
979  };
980 
1031  class POPPLER_QT5_EXPORT Document {
1032  friend class Page;
1033  friend class DocumentData;
1034 
1035  public:
1039  enum PageMode {
1045  UseAttach
1046  };
1047 
1051  enum PageLayout {
1058  TwoPageRight
1059  };
1060 
1068  ArthurBackend
1069  };
1070 
1076  enum RenderHint {
1077  Antialiasing = 0x00000001,
1078  TextAntialiasing = 0x00000002,
1079  TextHinting = 0x00000004,
1080  TextSlightHinting = 0x00000008,
1081  OverprintPreview = 0x00000010,
1082  ThinLineSolid = 0x00000020,
1083  ThinLineShape = 0x00000040,
1084  IgnorePaperColor = 0x00000080,
1085  HideAnnotations = 0x00000100
1086  };
1087  Q_DECLARE_FLAGS( RenderHints, RenderHint )
1088 
1089 
1094  enum FormType {
1097  XfaForm
1098  };
1099 
1109  void setColorDisplayProfile(void *outputProfileA);
1119  void setColorDisplayProfileName(const QString &name);
1127  void* colorRgbProfile() const;
1135  void *colorDisplayProfile() const;
1136 
1154  static Document *load(const QString & filePath,
1155  const QByteArray &ownerPassword=QByteArray(),
1156  const QByteArray &userPassword=QByteArray());
1157 
1179  static Document *loadFromData(const QByteArray &fileContents,
1180  const QByteArray &ownerPassword=QByteArray(),
1181  const QByteArray &userPassword=QByteArray());
1182 
1193  Page *page(int index) const;
1194 
1207  Page *page(const QString &label) const;
1208 
1212  int numPages() const;
1213 
1219  PageMode pageMode() const;
1220 
1226  PageLayout pageLayout() const;
1227 
1234  Qt::LayoutDirection textDirection() const;
1235 
1244  bool unlock(const QByteArray &ownerPassword, const QByteArray &userPassword);
1245 
1249  bool isLocked() const;
1250 
1266  QDateTime date( const QString & data ) const;
1267 
1273  bool setDate( const QString & key, const QDateTime & val );
1274 
1278  QDateTime creationDate() const;
1279 
1285  bool setCreationDate( const QDateTime & val );
1286 
1290  QDateTime modificationDate() const;
1291 
1297  bool setModificationDate( const QDateTime & val );
1298 
1315  QString info( const QString & data ) const;
1316 
1322  bool setInfo( const QString & key, const QString & val );
1323 
1327  QString title() const;
1328 
1334  bool setTitle( const QString & val );
1335 
1339  QString author() const;
1340 
1346  bool setAuthor( const QString & val );
1347 
1351  QString subject() const;
1352 
1358  bool setSubject( const QString & val );
1359 
1363  QString keywords() const;
1364 
1370  bool setKeywords( const QString & val );
1371 
1375  QString creator() const;
1376 
1382  bool setCreator( const QString & val );
1383 
1387  QString producer() const;
1388 
1394  bool setProducer( const QString & val );
1395 
1401  bool removeInfo();
1402 
1406  QStringList infoKeys() const;
1407 
1411  bool isEncrypted() const;
1412 
1419  bool isLinearized() const;
1420 
1425  bool okToPrint() const;
1426 
1431  bool okToPrintHighRes() const;
1432 
1440  bool okToChange() const;
1441 
1446  bool okToCopy() const;
1447 
1453  bool okToAddNotes() const;
1454 
1462  bool okToFillForm() const;
1463 
1469  bool okToCreateFormFields() const;
1470 
1476  bool okToExtractForAccessibility() const;
1477 
1485  bool okToAssemble() const;
1486 
1498  void getPdfVersion(int *major, int *minor) const;
1499 
1511  QList<FontInfo> fonts() const;
1512 
1528  FontIterator* newFontIterator( int startPage = 0 ) const;
1529 
1535  QByteArray fontData(const FontInfo &font) const;
1536 
1543  QList<EmbeddedFile*> embeddedFiles() const;
1544 
1548  bool hasEmbeddedFiles() const;
1549 
1573  QDomDocument *toc() const;
1574 
1583  LinkDestination *linkDestination( const QString &name );
1584 
1590  void setPaperColor(const QColor &color);
1596  QColor paperColor() const;
1597 
1605  void setRenderBackend( RenderBackend backend );
1613  RenderBackend renderBackend() const;
1614 
1620  static QSet<RenderBackend> availableRenderBackends();
1621 
1631  void setRenderHint( RenderHint hint, bool on = true );
1637  RenderHints renderHints() const;
1638 
1646  PSConverter *psConverter() const;
1647 
1655  PDFConverter *pdfConverter() const;
1656 
1662  QString metadata() const;
1663 
1676  bool hasOptionalContent() const;
1677 
1685  OptContentModel *optionalContentModel();
1686 
1695  QStringList scripts() const;
1696 
1709  bool getPdfId(QByteArray *permanentId, QByteArray *updateId) const;
1710 
1716  FormType formType() const;
1717 
1723  QVector<int> formCalculateOrder() const;
1724 
1728  ~Document();
1729 
1730  private:
1731  Q_DISABLE_COPY(Document)
1732 
1733  DocumentData *m_doc;
1734 
1735  Document(DocumentData *dataA);
1736  };
1737 
1738  class BaseConverterPrivate;
1739  class PSConverterPrivate;
1740  class PDFConverterPrivate;
1748  class POPPLER_QT5_EXPORT BaseConverter
1749  {
1750  friend class Document;
1751  public:
1755  virtual ~BaseConverter();
1756 
1758  void setOutputFileName(const QString &outputFileName);
1759 
1765  void setOutputDevice(QIODevice *device);
1766 
1772  virtual bool convert() = 0;
1773 
1774  enum Error
1775  {
1776  NoError,
1777  FileLockedError,
1778  OpenOutputError,
1779  NotSupportedInputFileError
1780  };
1781 
1786  Error lastError() const;
1787 
1788  protected:
1790  BaseConverter(BaseConverterPrivate &dd);
1791  Q_DECLARE_PRIVATE(BaseConverter)
1792  BaseConverterPrivate *d_ptr;
1794 
1795  private:
1796  Q_DISABLE_COPY(BaseConverter)
1797  };
1798 
1815  class POPPLER_QT5_EXPORT PSConverter : public BaseConverter
1816  {
1817  friend class Document;
1818  public:
1824  enum PSOption {
1825  Printing = 0x00000001,
1826  StrictMargins = 0x00000002,
1827  ForceRasterization = 0x00000004,
1828  PrintToEPS = 0x00000008,
1829  HideAnnotations = 0x00000010
1830  };
1831  Q_DECLARE_FLAGS( PSOptions, PSOption )
1832 
1833 
1836  ~PSConverter();
1837 
1839  void setPageList(const QList<int> &pageList);
1840 
1844  void setTitle(const QString &title);
1845 
1849  void setHDPI(double hDPI);
1850 
1854  void setVDPI(double vDPI);
1855 
1859  void setRotate(int rotate);
1860 
1864  void setPaperWidth(int paperWidth);
1865 
1869  void setPaperHeight(int paperHeight);
1870 
1874  void setRightMargin(int marginRight);
1875 
1879  void setBottomMargin(int marginBottom);
1880 
1884  void setLeftMargin(int marginLeft);
1885 
1889  void setTopMargin(int marginTop);
1890 
1898  void setStrictMargins(bool strictMargins);
1899 
1901  void setForceRasterize(bool forceRasterize);
1902 
1908  void setPSOptions(PSOptions options);
1909 
1917  PSOptions psOptions() const;
1918 
1926  void setPageConvertedCallback(void (* callback)(int page, void *payload), void *payload);
1927 
1928  bool convert() override;
1929 
1930  private:
1931  Q_DECLARE_PRIVATE(PSConverter)
1932  Q_DISABLE_COPY(PSConverter)
1933 
1934  PSConverter(DocumentData *document);
1935  };
1936 
1942  class POPPLER_QT5_EXPORT PDFConverter : public BaseConverter
1943  {
1944  friend class Document;
1945  public:
1949  enum PDFOption {
1950  WithChanges = 0x00000001
1951  };
1952  Q_DECLARE_FLAGS( PDFOptions, PDFOption )
1953 
1954 
1957  ~PDFConverter();
1958 
1962  void setPDFOptions(PDFOptions options);
1966  PDFOptions pdfOptions() const;
1967 
1968  bool convert() override;
1969 
1970  private:
1971  Q_DECLARE_PRIVATE(PDFConverter)
1972  Q_DISABLE_COPY(PDFConverter)
1973 
1974  PDFConverter(DocumentData *document);
1975  };
1976 
1980  POPPLER_QT5_EXPORT Q_DECL_DEPRECATED QDateTime convertDate( char *dateString );
1981 
1987  POPPLER_QT5_EXPORT QDateTime convertDate( const char *dateString );
1988 
1994  POPPLER_QT5_EXPORT bool isCmsAvailable();
1995 
2001  POPPLER_QT5_EXPORT bool isOverprintPreviewAvailable();
2002 
2003  class SoundData;
2013  class POPPLER_QT5_EXPORT SoundObject {
2014  public:
2018  enum SoundType {
2020  Embedded
2021  };
2022 
2030  ALaw
2031  };
2032 
2034  SoundObject(Sound *popplersound);
2036 
2037  ~SoundObject();
2038 
2042  SoundType soundType() const;
2043 
2047  QString url() const;
2048 
2052  QByteArray data() const;
2053 
2057  double samplingRate() const;
2058 
2062  int channels() const;
2063 
2067  int bitsPerSample() const;
2068 
2072  SoundEncoding soundEncoding() const;
2073 
2074  private:
2075  Q_DISABLE_COPY(SoundObject)
2076 
2077  SoundData *m_soundData;
2078  };
2079 
2080  class MovieData;
2086  class POPPLER_QT5_EXPORT MovieObject {
2087  friend class AnnotationPrivate;
2088  public:
2092  enum PlayMode {
2096  PlayPalindrome
2097  };
2098 
2099  ~MovieObject();
2100 
2104  QString url() const;
2105 
2109  QSize size() const;
2110 
2114  int rotation() const;
2115 
2119  bool showControls() const;
2120 
2124  PlayMode playMode() const;
2125 
2130  bool showPosterImage() const;
2131 
2138  QImage posterImage() const;
2139 
2140  private:
2142  MovieObject( AnnotMovie *ann );
2144 
2145  Q_DISABLE_COPY(MovieObject)
2146 
2147  MovieData *m_movieData;
2148  };
2149 
2150 }
2151 
2152 Q_DECLARE_OPERATORS_FOR_FLAGS(Poppler::Page::PainterFlags)
2153 Q_DECLARE_OPERATORS_FOR_FLAGS(Poppler::Page::SearchFlags)
2154 Q_DECLARE_OPERATORS_FOR_FLAGS(Poppler::Document::RenderHints)
2155 Q_DECLARE_OPERATORS_FOR_FLAGS(Poppler::PDFConverter::PDFOptions)
2156 Q_DECLARE_OPERATORS_FOR_FLAGS(Poppler::PSConverter::PSOptions)
2157 
2158 #endif
Converts a PDF to PDF (thus saves a copy of the document).
Definition: poppler-qt5.h:1942
Play continuously until stopped.
Definition: poppler-qt5.h:2095
Like PlayOnce, but leaving the controls open.
Definition: poppler-qt5.h:2094
PageMode
The page mode.
Definition: poppler-qt5.h:1039
bool isOverprintPreviewAvailable()
Whether the overprint preview functionality is available.
SoundType
The type of sound.
Definition: poppler-qt5.h:2018
The real sound file is external.
Definition: poppler-qt5.h:2019
TextLayout
How the text is going to be returned.
Definition: poppler-qt5.h:436
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:106
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:1055
void(* PopplerDebugFunc)(const QString &, const QVariant &)
Debug/error function.
Definition: poppler-qt5.h:82
PDF document.
Definition: poppler-qt5.h:1031
Find the next result, moving "down the page".
Definition: poppler-qt5.h:725
Raw encoding, with unspecified or unsigned values in the range [ 0, 2^B - 1 ].
Definition: poppler-qt5.h:2027
Thumbnail images visible.
Definition: poppler-qt5.h:1042
Landscape orientation (portrait, with 90 degrees clockwise rotation )
Definition: poppler-qt5.h:880
Optional content group panel visible.
Definition: poppler-qt5.h:1044
Seascape orientation (portrait, with 270 degrees clockwise rotation)
Definition: poppler-qt5.h:882
Type
The type of font.
Definition: poppler-qt5.h:168
No mode - neither document outline nor thumbnail images are visible.
Definition: poppler-qt5.h:1040
Fullscreen mode (no menubar, windows controls etc)
Definition: poppler-qt5.h:1043
Container class for a sound file in a PDF document.
Definition: poppler-qt5.h:2013
Rotation
The type of rotation to apply for an operation.
Definition: poppler-qt5.h:418
PageLayout
The page layout.
Definition: poppler-qt5.h:1051
PageAction
The kinds of page actions.
Definition: poppler-qt5.h:427
PSOption
Options for the PS export.
Definition: poppler-qt5.h:1824
RenderHint
The render hints available.
Definition: poppler-qt5.h:1076
A page in a document.
Definition: poppler-qt5.h:407
Container class for an embedded file with a PDF document.
Definition: poppler-qt5.h:318
Splash backend.
Definition: poppler-qt5.h:1067
The text is layouted to resemble the real page layout.
Definition: poppler-qt5.h:437
Play the movie once, closing the movie controls at the end.
Definition: poppler-qt5.h:2093
Container class for a movie object in a PDF document.
Definition: poppler-qt5.h:2086
RenderBackend
The render backends available.
Definition: poppler-qt5.h:1066
PlayMode
The play mode for playing the movie.
Definition: poppler-qt5.h:2092
Document doesn&#39;t contain forms.
Definition: poppler-qt5.h:1095
void setDebugErrorFunction(PopplerDebugFunc debugFunction, const QVariant &closure)
Set a new debug/error output function.
PDFOption
Options for the PDF export.
Definition: poppler-qt5.h:1949
Document outline visible.
Definition: poppler-qt5.h:1041
Display a single column of pages.
Definition: poppler-qt5.h:1054
Twos-complement values.
Definition: poppler-qt5.h:2028
Orientation
Types of orientations that are possible.
Definition: poppler-qt5.h:879
Model for optional content.
Definition: poppler-optcontent.h:49
Display a single page.
Definition: poppler-qt5.h:1053
The action when a page is "opened".
Definition: poppler-qt5.h:428
FormType
Form types.
Definition: poppler-qt5.h:1094
SearchFlag
Flags to modify the search behaviour.
Definition: poppler-qt5.h:739
Normal portrait orientation.
Definition: poppler-qt5.h:881
Iterator for reading the fonts in a document.
Definition: poppler-qt5.h:280
Container class for information about a font within a PDF document.
Definition: poppler-qt5.h:162
Display the pages two at a time, with odd-numbered pages on the left.
Definition: poppler-qt5.h:1057
Display the pages in two columns, with odd-numbered pages on the right.
Definition: poppler-qt5.h:1056
Layout not specified.
Definition: poppler-qt5.h:1052
QDateTime convertDate(char *dateString)
Conversion from PDF date string format to QDateTime.
SearchMode
The type of search to perform.
Definition: poppler-qt5.h:732
Base converter.
Definition: poppler-qt5.h:1748
AcroForm.
Definition: poppler-qt5.h:1096
SoundEncoding
The encoding format used for the sound.
Definition: poppler-qt5.h:2026
The Poppler Qt5 binding.
Definition: poppler-annotation.h:45
PainterFlag
Additional flags for the renderToPainter method.
Definition: poppler-qt5.h:445
SearchDirection
The starting point for a search.
Definition: poppler-qt5.h:724
mu-law-encoded samples
Definition: poppler-qt5.h:2029
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:1815