All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
15 namespace pdftron {
16  namespace PDF {
17  namespace Annots {
51 class Redaction : public Markup
52 {
53  public:
60  Redaction(SDF::Obj d = 0);
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 
89  int GetQuadPointCount();
90 
101  QuadPoint GetQuadPoint(int idx) const;
102 
113  void SetQuadPoint(int idx, const QuadPoint& qp);
114 
126  SDF::Obj GetAppFormXO()const;
127 
128 
141  void SetAppFormXO(SDF::Obj formxo);
142 
152  UString GetOverlayText() const;
153 
163  void SetOverlayText(const UString& title);
164 
175  bool GetUseRepeat() const;
176 
187  void SetUseRepeat(bool userepeat=false);
188 
199 
209  void SetOverlayTextAppearance(const UString& app);
210 
220  void SetOverlayTextFont(const UString& font_name);
221 
232  void SetOverlayTextFontSize(double font_size);
233 
238  enum QuadForm
239  {
244  };
245 
252  QuadForm GetQuadForm() const;
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
SDF::Obj GetSDFObj() const
void SetQuadForm(QuadForm form=e_LeftJustified)
Overlay text is right justified.
Definition: Redaction.h:242
UString GetOverlayTextAppearance() const
static Redaction Create(SDF::SDFDoc &doc, const Rect &pos)
void SetOverlayText(const UString &title)
void SetAppFormXO(SDF::Obj formxo)
Redaction(const Annot &ann)
Definition: Redaction.h:68
void SetOverlayTextFont(const UString &font_name)
void SetQuadPoint(int idx, const QuadPoint &qp)
void SetOverlayTextFontSize(double font_size)
No justification to the overlay text.
Definition: Redaction.h:243
SDF::Obj GetAppFormXO() const
Overlay text is left justified.
Definition: Redaction.h:240
static Redaction CreateAnnot(SDF::SDFDoc &doc, const Rect &pos)
QuadPoint GetQuadPoint(int idx) const
void SetOverlayTextAppearance(const UString &app)
void SetUseRepeat(bool userepeat=false)