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-2026 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  {
32  eSuccess = 0,
34  eFailure = 2
35  };
37  TemplateDocument(const TemplateDocument& other);
38  TemplateDocument(TRN_TemplateDocument impl);
41  void Destroy();
42 
52 
62  void FillTemplateJsonToOffice(UString json, UString output_path);
63 
74 
83 
91  UString GetErrorString() const;
92 
99 
105  void CancelConversion();
106 
113  bool IsCancelled() const;
114 
123  UInt32 GetNumWarnings() const;
124 
135  UString GetWarningString(UInt32 index) const;
136 
137  //for xamarin use only
138  static TemplateDocument* CreateInternal(ptrdiff_t impl);
139  ptrdiff_t GetHandleInternal();
140 
141 
142 #ifndef SWIGHIDDEN
143  TRN_TemplateDocument m_impl;
144 #endif
145 
146 private:
147 
148 };
149 
150 #include <Impl/TemplateDocument.inl>
151 } //end pdftron
152 } //end PDF
153 
154 
155 #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
void FillTemplateJsonToOfficeWithFilter(UString json, Filters::Filter &output_stream)
TemplateDocument & operator=(const TemplateDocument &other)