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-2023 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 
215  enum QuadForm
216  {
221  };
222 
229  QuadForm GetQuadForm() const;
230 
241 
242  // @cond PRIVATE_DOC
243  #ifndef SWIGHIDDEN
244  Redaction(TRN_Annot redaction);
245  #endif
246  // @endcond
247 
248 }; //class Redaction
249  }; //namespace Annot
250  }; //namespace PDF
251 }; //namespace pdftron
252 
253 #ifdef SWIG
254 #undef Redaction
255 #endif
256 
257 #include <Impl/Page.inl>
258 
259 #endif // PDFTRON_H_CPPPDFAnnotsRedaction
SDF::Obj GetSDFObj() const
void SetQuadForm(QuadForm form=e_LeftJustified)
Overlay text is right justified.
Definition: Redaction.h:219
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 SetQuadPoint(int idx, const QuadPoint &qp)
No justification to the overlay text.
Definition: Redaction.h:220
SDF::Obj GetAppFormXO() const
Overlay text is left justified.
Definition: Redaction.h:217
static Redaction CreateAnnot(SDF::SDFDoc &doc, const Rect &pos)
QuadPoint GetQuadPoint(int idx) const
void SetOverlayTextAppearance(const UString &app)
void SetUseRepeat(bool userepeat=false)