- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ContentReplacer.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 #ifndef PDFTRON_H_CPPPDFContentReplacer
6 #define PDFTRON_H_CPPPDFContentReplacer
7
8 #include <PDF/Page.h>
9 #include <C/PDF/TRN_ContentReplacer.h>
10
11 namespace pdftron {
12 namespace PDF {
40 class ContentReplacer
41 {
42 public:
47 ContentReplacer();
48 ~ContentReplacer();
49
65 void AddImage(const Rect& target_region, SDF::Obj replacement_image);
66
82 void AddText(const Rect& target_region, const UString& replacement_text);
83
96 void AddString(const UString& template_text, const UString& replacement_text);
97
112 void SetMatchStrings(const UString& start_str, const UString& end_str);
113
120 void Process(Page& page);
121
125 void Destroy();
126
127 #ifndef SWIGHIDDEN
128 TRN_ContentReplacer mp_impl;
129 #endif
130 };
131
132 }; // namespace PDF
133 }; // namespace pdftron
134
135 #include <Impl/ContentReplacer.inl>
136
137 #endif // PDFTRON_H_CPPPDFContentReplacer
pdftron::PDF::ContentReplacer::Destroy
void Destroy()
pdftron::PDF::ContentReplacer::Process
void Process(Page &page)
pdftron::PDF::ContentReplacer::AddString
void AddString(const UString &template_text, const UString &replacement_text)
pdftron::PDF::Rect
Definition: Rect.h:28
pdftron::PDF::ContentReplacer::AddText
void AddText(const Rect &target_region, const UString &replacement_text)
pdftron::PDF::ContentReplacer::AddImage
void AddImage(const Rect &target_region, SDF::Obj replacement_image)
pdftron::PDF::ContentReplacer::ContentReplacer
ContentReplacer()
pdftron::PDF::ContentReplacer::~ContentReplacer
~ContentReplacer()
pdftron::PDF::Page
Definition: Page.h:31
pdftron::PDF::ContentReplacer::mp_impl
TRN_ContentReplacer mp_impl
Definition: ContentReplacer.h:128
Page.h
pdftron::PDF::ContentReplacer::SetMatchStrings
void SetMatchStrings(const UString &start_str, const UString &end_str)
pdftron::SDF::Obj
Definition: Obj.h:40
pdftron::PDF::ContentReplacer
Definition: ContentReplacer.h:40
pdftron::UString
Definition: UString.h:27