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-2025 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 
50 
58  void FillTemplateJsonToOffice(UString json, UString output_path);
59 
68 
77 
85  UString GetErrorString() const;
86 
93 
99  void CancelConversion();
100 
106  bool IsCancelled() const;
107 
115  UInt32 GetNumWarnings() const;
116 
126  UString GetWarningString(UInt32 index) const;
127 
128  //for xamarin use only
129  static TemplateDocument* CreateInternal(ptrdiff_t impl);
130  ptrdiff_t GetHandleInternal();
131 
132 
133 #ifndef SWIGHIDDEN
134  TRN_TemplateDocument m_impl;
135 #endif
136 
137 private:
138 
139 };
140 
141 #include <Impl/TemplateDocument.inl>
142 } //end pdftron
143 } //end PDF
144 
145 
146 #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)