Loading...
Searching...
No Matches
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
11namespace pdftron {
12 namespace PDF {
41{
42public:
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
void AddText(const Rect &target_region, const UString &replacement_text)
void AddImage(const Rect &target_region, SDF::Obj replacement_image)
void AddString(const UString &template_text, const UString &replacement_text)
void SetMatchStrings(const UString &start_str, const UString &end_str)