Loading...
Searching...
No Matches
RubberStamp.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_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 {
41 e_Approved,
42 e_Experimental,
43 e_NotApproved,
44 e_AsIs,
45 e_Expired,
46 e_NotForPublicRelease,
47 e_Confidential,
48 e_Final,
49 e_Sold,
50 e_Departmental,
51 e_ForComment,
52 e_TopSecret,
53 e_ForPublicRelease,
54 e_Draft,
55 e_Unknown
56 };
57
66 static RubberStamp Create(SDF::SDFDoc& doc, const Rect& pos, Icon icon= e_Draft);
67 static RubberStamp CreateAnnot(SDF::SDFDoc& doc, const Rect& pos, Icon icon = e_Draft);
68
92 static RubberStamp Create(SDF::SDFDoc& doc, const Rect& pos, SDF::Obj* form_xobject);
93 static RubberStamp CreateAnnot(SDF::SDFDoc& doc, const Rect& pos, SDF::Obj* form_xobject);
94
102 Icon GetIcon() const;
103
111 void SetIcon(Icon type = e_Draft);
112
137 const char* GetIconName() const;
138
163 void SetIcon(const char* icon);
164
169 void SetOpacity(double opacity);
170
171 // @cond PRIVATE_DOC
172 #ifndef SWIGHIDDEN
173 RubberStamp(TRN_Annot rubberstamp);
174 #endif
175 // @endcond
176
177 }; //class rubber stamp
178 }; //namespace Annot
179 }; //namespace PDF
180}; //namespace pdftron
181#include <Impl/Page.inl>
182
183#endif // PDFTRON_H_CPPPDFAnnotsRubberStamp
Markup.h
pdftron::PDF::Annot::Annot
Annot(SDF::Obj d=0)
pdftron::PDF::Annot::GetSDFObj
SDF::Obj GetSDFObj() const
pdftron::PDF::Annots::Markup::Markup
Markup(SDF::Obj d=0)
pdftron::PDF::Annots::RubberStamp::Create
static RubberStamp Create(SDF::SDFDoc &doc, const Rect &pos, SDF::Obj *form_xobject)
pdftron::PDF::Annots::RubberStamp::SetIcon
void SetIcon(const char *icon)
pdftron::PDF::Annots::RubberStamp::CreateAnnot
static RubberStamp CreateAnnot(SDF::SDFDoc &doc, const Rect &pos, Icon icon=e_Draft)
pdftron::PDF::Annots::RubberStamp::Icon
Icon
Definition RubberStamp.h:40
pdftron::PDF::Annots::RubberStamp::e_ForPublicRelease
@ e_ForPublicRelease
a stamp with the text "For Public Release".
Definition RubberStamp.h:53
pdftron::PDF::Annots::RubberStamp::e_Experimental
@ e_Experimental
a stamp with the text "Experimental".
Definition RubberStamp.h:42
pdftron::PDF::Annots::RubberStamp::e_NotForPublicRelease
@ e_NotForPublicRelease
a stamp with the text "Not For Public Release".
Definition RubberStamp.h:46
pdftron::PDF::Annots::RubberStamp::e_Draft
@ e_Draft
a stamp with the text "Draft".
Definition RubberStamp.h:54
pdftron::PDF::Annots::RubberStamp::e_Confidential
@ e_Confidential
a stamp with the text "Confidential".
Definition RubberStamp.h:47
pdftron::PDF::Annots::RubberStamp::e_AsIs
@ e_AsIs
a stamp with the text "As Is".
Definition RubberStamp.h:44
pdftron::PDF::Annots::RubberStamp::e_NotApproved
@ e_NotApproved
a stamp with the text "Not Approved".
Definition RubberStamp.h:43
pdftron::PDF::Annots::RubberStamp::e_TopSecret
@ e_TopSecret
a stamp with the text "Top Secret".
Definition RubberStamp.h:52
pdftron::PDF::Annots::RubberStamp::e_Expired
@ e_Expired
a stamp with the text "Expired".
Definition RubberStamp.h:45
pdftron::PDF::Annots::RubberStamp::e_Departmental
@ e_Departmental
a stamp with the text "Departmental".
Definition RubberStamp.h:50
pdftron::PDF::Annots::RubberStamp::e_Sold
@ e_Sold
a stamp with the text "Sold".
Definition RubberStamp.h:49
pdftron::PDF::Annots::RubberStamp::e_Final
@ e_Final
a stamp with the text "Final".
Definition RubberStamp.h:48
pdftron::PDF::Annots::RubberStamp::e_Unknown
@ e_Unknown
Non-standard or user defined stamp.
Definition RubberStamp.h:55
pdftron::PDF::Annots::RubberStamp::e_ForComment
@ e_ForComment
a stamp with the text "For Comment".
Definition RubberStamp.h:51
pdftron::PDF::Annots::RubberStamp::e_Approved
@ e_Approved
a stamp with the text "Approved".
Definition RubberStamp.h:41
pdftron::PDF::Annots::RubberStamp::Create
static RubberStamp Create(SDF::SDFDoc &doc, const Rect &pos, Icon icon=e_Draft)
pdftron::PDF::Annots::RubberStamp::GetIcon
Icon GetIcon() const
pdftron::PDF::Annots::RubberStamp::SetIcon
void SetIcon(Icon type=e_Draft)
pdftron::PDF::Annots::RubberStamp::SetOpacity
void SetOpacity(double opacity)
pdftron::PDF::Annots::RubberStamp::CreateAnnot
static RubberStamp CreateAnnot(SDF::SDFDoc &doc, const Rect &pos, SDF::Obj *form_xobject)
pdftron::PDF::Annots::RubberStamp::GetIconName
const char * GetIconName() const
pdftron::PDF::Annots::RubberStamp::RubberStamp
RubberStamp(SDF::Obj d=0)
pdftron::PDF::Annots::RubberStamp::RubberStamp
RubberStamp(const Annot &ann)
Definition RubberStamp.h:34
pdftron::PDF::Rect
Definition Rect.h:29
pdftron::SDF::Obj
Definition Obj.h:41
pdftron::SDF::SDFDoc
Definition SDFDoc.h:68
pdftron::PDF::Annots
Definition Caret.h:12
pdftron::PDF
Definition Action.h:15
pdftron
Definition BasicTypes.h:10