![]() |
#include <RubberStamp.h>
Public Types | |
enum | Icon { e_Approved, e_Experimental, e_NotApproved, e_AsIs, e_Expired, e_NotForPublicRelease, e_Confidential, e_Final, e_Sold, e_Departmental, e_ForComment, e_TopSecret, e_ForPublicRelease, e_Draft, e_Unknown } |
This enum represents the Icon type of the RubberStamp annotation. More... | |
Public Member Functions | |
RubberStamp (SDF::Obj d=0) | |
Creates a RubberStamp annotation and initializes it using given Cos/SDF object. | |
RubberStamp (const Annot &ann) | |
Creates a RubberStamp annotation and initializes it using given annotation object. | |
Icon | GetIcon () const |
Returns the type of the icon associated with the RubberStamp annotation. | |
void | SetIcon (Icon type=e_Draft) |
Sets the type of the icon associated with the RubberStamp annotation. | |
const char * | GetIconName () const |
Returns the name of the icon associated with the RubberStamp annotation. | |
void | SetIcon (const char *icon) |
Sets the name of the icon associated with the RubberStamp annotation. | |
Static Public Member Functions | |
static RubberStamp | Create (SDF::SDFDoc &doc, const Rect &pos, Icon icon=e_Draft) |
Creates a new RubberStamp annotation in the specified document. |
This enum represents the Icon type of the RubberStamp annotation.
pdftron::PDF::Annots::RubberStamp::RubberStamp | ( | SDF::Obj | d = 0 |
) |
Creates a RubberStamp annotation and initializes it using given Cos/SDF object.
pdftron::PDF::Annots::RubberStamp::RubberStamp | ( | const Annot & | ann | ) | [inline] |
Creates a RubberStamp annotation and initializes it using given annotation object.
static RubberStamp pdftron::PDF::Annots::RubberStamp::Create | ( | SDF::SDFDoc & | doc, | |
const Rect & | pos, | |||
Icon | icon = e_Draft | |||
) | [static] |
Creates a new RubberStamp annotation in the specified document.
doc | A document to which the annotation is added. | |
pos | A rectangle specifying the annotation's bounds in default user space units. |
Icon pdftron::PDF::Annots::RubberStamp::GetIcon | ( | ) | const |
Returns the type of the icon associated with the RubberStamp annotation.
void pdftron::PDF::Annots::RubberStamp::SetIcon | ( | Icon | type = e_Draft |
) |
Sets the type of the icon associated with the RubberStamp annotation.
type | A value of enum "Icon" type that represents the type of icon associated with the annotation. Default value: e_Draft. |
const char* pdftron::PDF::Annots::RubberStamp::GetIconName | ( | ) | const |
Returns the name of the icon associated with the RubberStamp annotation.
void pdftron::PDF::Annots::RubberStamp::SetIcon | ( | const char * | icon | ) |
Sets the name of the icon associated with the RubberStamp annotation.
iconstring | the name of the icon associated with the RubberStamp annotation. |