- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

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
27 class TemplateDocument
28 {
29 public:
30 enum Result
31 {
32 eSuccess = 0,
33 eIncomplete = 1,
34 eFailure = 2
35 };
36 TemplateDocument();
37 TemplateDocument(const TemplateDocument& other);
38 TemplateDocument(TRN_TemplateDocument impl);
39 TemplateDocument& operator= (const TemplateDocument& other);
40 ~TemplateDocument();
41 void Destroy();
42
49 PDFDoc FillTemplateJson(UString json);
50
58 void FillTemplateJsonToOffice(UString json, UString output_path);
59
67 void FillTemplateJsonToOfficeWithFilter(UString json, Filters::Filter& output_stream);
68
76 UString GetTemplateKeysJson();
77
85 UString GetErrorString() const;
86
92 Result GetConversionStatus() const;
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
pdftron::PDF::TemplateDocument::CancelConversion
void CancelConversion()
pdftron::PDF::TemplateDocument::GetNumWarnings
UInt32 GetNumWarnings() const
pdftron::PDF::TemplateDocument::m_impl
TRN_TemplateDocument m_impl
Definition: TemplateDocument.h:134
pdftron::PDF::TemplateDocument::GetConversionStatus
Result GetConversionStatus() const
pdftron::PDF::TemplateDocument::TemplateDocument
TemplateDocument()
UString.h
pdftron::PDF::TemplateDocument::eIncomplete
Definition: TemplateDocument.h:33
pdftron::PDF::TemplateDocument::CreateInternal
static TemplateDocument * CreateInternal(ptrdiff_t impl)
pdftron::PDF::TemplateDocument::eSuccess
Definition: TemplateDocument.h:32
pdftron::PDF::TemplateDocument::GetWarningString
UString GetWarningString(UInt32 index) const
pdftron::PDF::TemplateDocument::FillTemplateJsonToOffice
void FillTemplateJsonToOffice(UString json, UString output_path)
pdftron::PDF::TemplateDocument::GetTemplateKeysJson
UString GetTemplateKeysJson()
pdftron::PDF::TemplateDocument::Result
Result
Definition: TemplateDocument.h:30
pdftron::PDF::PDFDoc
Definition: PDFDoc.h:71
pdftron::UInt32
TRN_UInt32 UInt32
Definition: BasicTypes.h:13
PDFDoc.h
pdftron::PDF::TemplateDocument::Destroy
void Destroy()
pdftron::Filters::Filter
Definition: Filter.h:45
pdftron::PDF::TemplateDocument::FillTemplateJson
PDFDoc FillTemplateJson(UString json)
pdftron::PDF::TemplateDocument::IsCancelled
bool IsCancelled() const
BasicTypes.h
pdftron::PDF::TemplateDocument::~TemplateDocument
~TemplateDocument()
pdftron::PDF::TemplateDocument::eFailure
Definition: TemplateDocument.h:34
pdftron::PDF::TemplateDocument::GetErrorString
UString GetErrorString() const
pdftron::PDF::TemplateDocument::FillTemplateJsonToOfficeWithFilter
void FillTemplateJsonToOfficeWithFilter(UString json, Filters::Filter &output_stream)
pdftron::PDF::TemplateDocument::GetHandleInternal
ptrdiff_t GetHandleInternal()
pdftron::UString
Definition: UString.h:27
pdftron::PDF::TemplateDocument::operator=
TemplateDocument & operator=(const TemplateDocument &other)
pdftron::PDF::TemplateDocument
Definition: TemplateDocument.h:27