Loading...
Searching...
No Matches
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
BasicTypes.h
PDFDoc.h
UString.h
pdftron::Filters::Filter
Definition Filter.h:46
pdftron::PDF::PDFDoc
Definition PDFDoc.h:72
pdftron::PDF::TemplateDocument::~TemplateDocument
~TemplateDocument()
pdftron::PDF::TemplateDocument::FillTemplateJson
PDFDoc FillTemplateJson(UString json)
pdftron::PDF::TemplateDocument::GetTemplateKeysJson
UString GetTemplateKeysJson()
pdftron::PDF::TemplateDocument::CreateInternal
static TemplateDocument * CreateInternal(ptrdiff_t impl)
pdftron::PDF::TemplateDocument::GetConversionStatus
Result GetConversionStatus() const
pdftron::PDF::TemplateDocument::m_impl
TRN_TemplateDocument m_impl
Definition TemplateDocument.h:134
pdftron::PDF::TemplateDocument::FillTemplateJsonToOffice
void FillTemplateJsonToOffice(UString json, UString output_path)
pdftron::PDF::TemplateDocument::GetNumWarnings
UInt32 GetNumWarnings() const
pdftron::PDF::TemplateDocument::Destroy
void Destroy()
pdftron::PDF::TemplateDocument::GetWarningString
UString GetWarningString(UInt32 index) const
pdftron::PDF::TemplateDocument::Result
Result
Definition TemplateDocument.h:31
pdftron::PDF::TemplateDocument::eFailure
@ eFailure
Definition TemplateDocument.h:34
pdftron::PDF::TemplateDocument::eIncomplete
@ eIncomplete
Definition TemplateDocument.h:33
pdftron::PDF::TemplateDocument::eSuccess
@ eSuccess
Definition TemplateDocument.h:32
pdftron::PDF::TemplateDocument::IsCancelled
bool IsCancelled() const
pdftron::PDF::TemplateDocument::GetErrorString
UString GetErrorString() const
pdftron::PDF::TemplateDocument::TemplateDocument
TemplateDocument(TRN_TemplateDocument impl)
pdftron::PDF::TemplateDocument::GetHandleInternal
ptrdiff_t GetHandleInternal()
pdftron::PDF::TemplateDocument::FillTemplateJsonToOfficeWithFilter
void FillTemplateJsonToOfficeWithFilter(UString json, Filters::Filter &output_stream)
pdftron::PDF::TemplateDocument::TemplateDocument
TemplateDocument(const TemplateDocument &other)
pdftron::PDF::TemplateDocument::TemplateDocument
TemplateDocument()
pdftron::PDF::TemplateDocument::operator=
TemplateDocument & operator=(const TemplateDocument &other)
pdftron::PDF::TemplateDocument::CancelConversion
void CancelConversion()
pdftron::UString
Definition UString.h:28
pdftron::PDF
Definition Action.h:15
pdftron
Definition BasicTypes.h:10
pdftron::UInt32
TRN_UInt32 UInt32
Definition BasicTypes.h:13