All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RubberStamp.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2020 by PDFTron Systems Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 #ifndef PDFTRON_H_CPPPDFAnnotsRubberStamp
6 #define PDFTRON_H_CPPPDFAnnotsRubberStamp
7 
8 #include <PDF/Annots/Markup.h>
9 
10 namespace pdftron {
11  namespace PDF {
12  namespace Annots {
17 class RubberStamp : public Markup
18 {
19  public:
26  RubberStamp(SDF::Obj d = 0);
27 
34  RubberStamp(const Annot& ann) : Markup(ann.GetSDFObj()) {}
35 
39  enum Icon
40  {
56  };
57 
66  static RubberStamp Create(SDF::SDFDoc& doc, const Rect& pos, Icon icon= e_Draft);
67 
91  static RubberStamp Create(SDF::SDFDoc& doc, const Rect& pos, SDF::Obj* form_xobject);
92 
100  Icon GetIcon() const;
101 
109  void SetIcon(Icon type = e_Draft);
110 
135  const char* GetIconName() const;
136 
161  void SetIcon(const char* icon);
162 
163  // @cond PRIVATE_DOC
164  #ifndef SWIGHIDDEN
165  RubberStamp(TRN_Annot rubberstamp);
166  #endif
167  // @endcond
168 
169  }; //class rubber stamp
170  }; //namespace Annot
171  }; //namespace PDF
172 }; //namespace pdftron
173 #include <Impl/Page.inl>
174 
175 #endif // PDFTRON_H_CPPPDFAnnotsRubberStamp
SDF::Obj GetSDFObj() const
void SetIcon(Icon type=e_Draft)
Non-standard or user defined stamp.
Definition: RubberStamp.h:55
a stamp with the text &quot;Confidential&quot;
Definition: RubberStamp.h:47
a stamp with the text &quot;As Is&quot;
Definition: RubberStamp.h:44
a stamp with the text &quot;Approved&quot;
Definition: RubberStamp.h:41
const char * GetIconName() const
a stamp with the text &quot;Not For Public Release&quot;
Definition: RubberStamp.h:46
a stamp with the text &quot;Not Approved&quot;
Definition: RubberStamp.h:43
a stamp with the text &quot;For Public Release&quot;
Definition: RubberStamp.h:53
static RubberStamp Create(SDF::SDFDoc &doc, const Rect &pos, Icon icon=e_Draft)
a stamp with the text &quot;Expired&quot;
Definition: RubberStamp.h:45
a stamp with the text &quot;Sold&quot;
Definition: RubberStamp.h:49
a stamp with the text &quot;Experimental&quot;
Definition: RubberStamp.h:42
a stamp with the text &quot;Top Secret&quot;
Definition: RubberStamp.h:52
a stamp with the text &quot;Departmental&quot;
Definition: RubberStamp.h:50
a stamp with the text &quot;Draft&quot;
Definition: RubberStamp.h:54
a stamp with the text &quot;For Comment&quot;
Definition: RubberStamp.h:51
a stamp with the text &quot;Final&quot;
Definition: RubberStamp.h:48