All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TemplateDocument.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2024 by Apryse Software 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_CPPPDFTemplateDocument
9 #define PDFTRON_H_CPPPDFTemplateDocument
10 #include <C/PDF/TRN_TemplateDocument.h>
11 
12 #include <Common/BasicTypes.h>
13 #include <Common/UString.h>
14 #include <PDF/PDFDoc.h>
15 
16 namespace pdftron { namespace PDF {
17 
18 
28 {
29 public:
30  enum Result {
31  eSuccess = 0,
34  };
36  TemplateDocument(const TemplateDocument& other);
37  TemplateDocument(TRN_TemplateDocument impl);
40  void Destroy();
41 
49 
56  void FillTemplateJsonToOffice(UString json, UString output_path);
57 
64 
70  UString GetErrorString() const;
71 
78 
83  void CancelConversion();
84 
90  bool IsCancelled() const;
91 
97  UInt32 GetNumWarnings() const;
98 
105  UString GetWarningString(UInt32 index) const;
106 
107  //for xamarin use only
108  static TemplateDocument* CreateInternal(ptrdiff_t impl);
109  ptrdiff_t GetHandleInternal();
110 
111 
112 #ifndef SWIGHIDDEN
113  TRN_TemplateDocument m_impl;
114 #endif
115 
116 private:
117 
118 };
119 
120 #include <Impl/TemplateDocument.inl>
121 } //end pdftron
122 } //end PDF
123 
124 
125 #endif //PDFTRON_H_CPPPDFTemplateDocument
Result GetConversionStatus() const
static TemplateDocument * CreateInternal(ptrdiff_t impl)
UString GetWarningString(UInt32 index) const
void FillTemplateJsonToOffice(UString json, UString output_path)
TRN_UInt32 UInt32
Definition: BasicTypes.h:13
PDFDoc FillTemplateJson(UString json)
UString GetErrorString() const
TemplateDocument & operator=(const TemplateDocument &other)