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-2020 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  //for xamarin use only
140  static DocumentConversion* CreateInternal(ptrdiff_t impl);
141  ptrdiff_t GetHandleInternal();
142 
143 #ifndef SWIGHIDDEN
144  TRN_DocumentConversion m_impl;
145 #endif
146 
147 private:
148 
149 #ifndef SWIGHIDDEN
150  mutable bool m_owner;
151 #endif
152 };
153 
154 #include <Impl/DocumentConversion.inl>
155 } //end pdftron
156 } //end PDF
157 
158 
159 #endif //PDFTRON_H_CPPPDFDocumentConversion
UString GetWarningString(UInt32 index) const
DocumentConversion & operator=(const DocumentConversion &other)
UInt32 GetNumConvertedPages() const
TRN_UInt32 UInt32
Definition: BasicTypes.h:13
static DocumentConversion * CreateInternal(ptrdiff_t impl)