All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DocumentConversion.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2018 by PDFTron Systems Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 // !Warning! This file is autogenerated, modify the .codegen file, not this one
6 // (any changes here will be wiped out during the autogen process)
7 
8 #ifndef PDFTRON_H_CPPPDFDocumentConversion
9 #define PDFTRON_H_CPPPDFDocumentConversion
10 #include <C/PDF/TRN_DocumentConversion.h>
11 #include <Common/BasicTypes.h>
12 #include <Common/UString.h>
13 #include <PDF/PDFDoc.h>
14 
15 namespace pdftron { namespace PDF {
16 
25 {
26 public:
27  //enums:
28  enum Result {
29  eSuccess = 0,
32  };
35  DocumentConversion(TRN_DocumentConversion impl);
38 
39  void Destroy();
40 
41  //methods:
42 
49 
54  void Convert();
55 
60  void ConvertNextPage();
61 
68 
75 
80  void CancelConversion();
81 
87  bool IsCancelled() const;
88 
94  bool HasProgressTracking() const;
95 
101  double GetProgress() const;
102 
108  UString GetProgressLabel() const;
109 
116 
122  UString GetErrorString() const;
123 
129  UInt32 GetNumWarnings() const;
130 
137  UString GetWarningString(UInt32 index) const;
138 
139 #ifndef SWIGHIDDEN
140  TRN_DocumentConversion m_impl;
141 #endif
142 
143 private:
144 
145 #ifndef SWIGHIDDEN
146  mutable bool m_owner;
147 #endif
148 };
149 
150 #include <Impl/DocumentConversion.inl>
151 } //end pdftron
152 } //end PDF
153 
154 
155 #endif //PDFTRON_H_CPPPDFDocumentConversion
UString GetWarningString(UInt32 index) const
DocumentConversion & operator=(const DocumentConversion &other)
UInt32 GetNumConvertedPages() const
TRN_UInt32 UInt32
Definition: BasicTypes.h:13

© 2002-2014 PDFTron Systems Inc.