Loading...
Searching...
No Matches
Redaction.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_CPPPDFAnnotsRedaction
6#define PDFTRON_H_CPPPDFAnnotsRedaction
7
8#include <PDF/Annots/Markup.h>
9#include <PDF/QuadPoint.h>
10
11#ifdef SWIG
12#define Redaction RedactionAnnot
13#endif
14
15namespace pdftron {
16 namespace PDF {
17 namespace Annots {
51class Redaction : public Markup
52{
53 public:
61
68 Redaction(const Annot& ann) : Markup(ann.GetSDFObj()) {}
69
78 static Redaction Create(SDF::SDFDoc& doc, const Rect& pos);
79 static Redaction CreateAnnot(SDF::SDFDoc& doc, const Rect& pos);
80
90
101 QuadPoint GetQuadPoint(int idx) const;
102
113 void SetQuadPoint(int idx, const QuadPoint& qp);
114
127
128
141 void SetAppFormXO(SDF::Obj formxo);
142
153
163 void SetOverlayText(const UString& title);
164
175 bool GetUseRepeat() const;
176
187 void SetUseRepeat(bool userepeat=false);
188
199
210
220 void SetOverlayTextFont(const UString& font_name);
221
232 void SetOverlayTextFontSize(double font_size);
233
245
253
264
265 // @cond PRIVATE_DOC
266 #ifndef SWIGHIDDEN
267 Redaction(TRN_Annot redaction);
268 #endif
269 // @endcond
270
271}; //class Redaction
272 }; //namespace Annot
273 }; //namespace PDF
274}; //namespace pdftron
275
276#ifdef SWIG
277#undef Redaction
278#endif
279
280#include <Impl/Page.inl>
281
282#endif // PDFTRON_H_CPPPDFAnnotsRedaction
Annot(SDF::Obj d=0)
SDF::Obj GetSDFObj() const
QuadPoint GetQuadPoint(int idx) const
void SetQuadPoint(int idx, const QuadPoint &qp)
void SetQuadForm(QuadForm form=e_LeftJustified)
void SetOverlayTextFontSize(double font_size)
static Redaction CreateAnnot(SDF::SDFDoc &doc, const Rect &pos)
void SetOverlayTextAppearance(const UString &app)
void SetOverlayText(const UString &title)
void SetUseRepeat(bool userepeat=false)
static Redaction Create(SDF::SDFDoc &doc, const Rect &pos)
UString GetOverlayTextAppearance() const
@ e_None
No justification to the overlay text.
Definition Redaction.h:243
@ e_LeftJustified
Overlay text is left justified.
Definition Redaction.h:240
@ e_Centered
Overlay text is centered.
Definition Redaction.h:241
@ e_RightJustified
Overlay text is right justified.
Definition Redaction.h:242
void SetAppFormXO(SDF::Obj formxo)
void SetOverlayTextFont(const UString &font_name)
Redaction(const Annot &ann)
Definition Redaction.h:68