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
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
Page.h
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::Process
void Process(Page &page)
pdftron::PDF::ContentReplacer::Destroy
void Destroy()
pdftron::PDF::ContentReplacer::mp_impl
TRN_ContentReplacer mp_impl
Definition ContentReplacer.h:128
pdftron::PDF::ContentReplacer::~ContentReplacer
~ContentReplacer()
pdftron::PDF::ContentReplacer::ContentReplacer
ContentReplacer()
pdftron::PDF::ContentReplacer::AddString
void AddString(const UString &template_text, const UString &replacement_text)
pdftron::PDF::ContentReplacer::SetMatchStrings
void SetMatchStrings(const UString &start_str, const UString &end_str)
pdftron::PDF::Page
Definition Page.h:32
pdftron::PDF::Rect
Definition Rect.h:29
pdftron::SDF::Obj
Definition Obj.h:41
pdftron::UString
Definition UString.h:28
pdftron::PDF
Definition Action.h:15
pdftron
Definition BasicTypes.h:10