An abstract class for various kinds of stamps which come as descendants. More...

Inherits System::Object.

Inherited by Aspose::Pdf::ImageStamp, Aspose::Pdf::PdfPageStamp, and Aspose::Pdf::TextStamp.

Public Member Functions

ASPOSE_PDF_SHARED_API bool get_Background () const
 Sets or gets a bool value that indicates the content is stamped as background. If the value is true, the stamp content is layed at the bottom. By defalt, the value is false, the stamp content is layed at the top. More...
 
ASPOSE_PDF_SHARED_API void set_Background (bool value)
 Sets or gets a bool value that indicates the content is stamped as background. If the value is true, the stamp content is layed at the bottom. By defalt, the value is false, the stamp content is layed at the top. More...
 
ASPOSE_PDF_SHARED_API double get_Opacity () const
 Gets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0. More...
 
ASPOSE_PDF_SHARED_API void set_Opacity (double value)
 Sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0. More...
 
ASPOSE_PDF_SHARED_API double get_OutlineOpacity () const
 Gets a value to indicate the stamp outline opacity. The value is from 0.0 to 1.0. By default the value is 1.0. More...
 
ASPOSE_PDF_SHARED_API void set_OutlineOpacity (double value)
 Sets a value to indicate the stamp outline opacity. The value is from 0.0 to 1.0. By default the value is 1.0. More...
 
ASPOSE_PDF_SHARED_API double get_OutlineWidth () const
 Gets a value of the stamp outline width. By default the value is 1.0. More...
 
ASPOSE_PDF_SHARED_API void set_OutlineWidth (double value)
 Sets a value of the stamp outline width. By default the value is 1.0. More...
 
ASPOSE_PDF_SHARED_API Rotation get_Rotate ()
 Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. More...
 
ASPOSE_PDF_SHARED_API void set_Rotate (Rotation value)
 Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None. More...
 
ASPOSE_PDF_SHARED_API double get_XIndent () const
 Horizontal stamp coordinate, starting from the left. More...
 
ASPOSE_PDF_SHARED_API void set_XIndent (double value)
 Horizontal stamp coordinate, starting from the left. More...
 
ASPOSE_PDF_SHARED_API double get_YIndent () const
 Vertical stamp coordinate, starting from the bottom. More...
 
ASPOSE_PDF_SHARED_API void set_YIndent (double value)
 Vertical stamp coordinate, starting from the bottom. More...
 
ASPOSE_PDF_SHARED_API Aspose::Pdf::HorizontalAlignment get_HorizontalAlignment () const
 Gets Horizontal alignment of stamp on the page. More...
 
ASPOSE_PDF_SHARED_API void set_HorizontalAlignment (Aspose::Pdf::HorizontalAlignment value)
 Sets Horizontal alignment of stamp on the page. More...
 
ASPOSE_PDF_SHARED_API Aspose::Pdf::VerticalAlignment get_VerticalAlignment () const
 Gets vertical alignment of stamp on page. More...
 
ASPOSE_PDF_SHARED_API void set_VerticalAlignment (Aspose::Pdf::VerticalAlignment value)
 Sets vertical alignment of stamp on page. More...
 
ASPOSE_PDF_SHARED_API double get_LeftMargin () const
 Gets left margin of stamp. More...
 
ASPOSE_PDF_SHARED_API void set_LeftMargin (double value)
 Sets left margin of stamp. More...
 
ASPOSE_PDF_SHARED_API double get_RightMargin () const
 Gets right margin of stamp. More...
 
ASPOSE_PDF_SHARED_API void set_RightMargin (double value)
 Sets right margin of stamp. More...
 
ASPOSE_PDF_SHARED_API double get_BottomMargin () const
 Gets bottom margin of stamp. More...
 
ASPOSE_PDF_SHARED_API void set_BottomMargin (double value)
 Sets bottom margin of stamp. More...
 
ASPOSE_PDF_SHARED_API double get_TopMargin () const
 Gets top margin of stamp. More...
 
ASPOSE_PDF_SHARED_API void set_TopMargin (double value)
 Sets top margin of stamp. More...
 
ASPOSE_PDF_SHARED_API double get_ZoomX () const
 Horizontal zooming factor of the stamp. Allows to scale stamp horizontally. More...
 
ASPOSE_PDF_SHARED_API void set_ZoomX (double value)
 Horizontal zooming factor of the stamp. Allows to scale stamp horizontally. More...
 
virtual ASPOSE_PDF_SHARED_API double get_Width ()
 Desired width of the stamp on the page. More...
 
virtual ASPOSE_PDF_SHARED_API void set_Width (double value)
 Desired width of the stamp on the page. More...
 
virtual ASPOSE_PDF_SHARED_API double get_Height ()
 Desired height of the stamp on the page. More...
 
virtual ASPOSE_PDF_SHARED_API void set_Height (double value)
 Desired height of the stamp on the page. More...
 
ASPOSE_PDF_SHARED_API double get_ZoomY () const
 Vertical zooming factor of the stamp. Allows to scale stamp vertically. More...
 
ASPOSE_PDF_SHARED_API void set_ZoomY (double value)
 Vertical zooming factor of the stamp. Allows to scale stamp vertically. More...
 
ASPOSE_PDF_SHARED_API double get_Zoom () const
 Zooming factor of the stamp. Allows to scale stamp. Please note that pair of properties ZoomX and ZoomY allows to set zoom factor for every axe separately. Setting of this property changes both ZoomX and ZoomY properties. If ZoomX and ZoomY are different then Zoom property returns ZoomX value. More...
 
ASPOSE_PDF_SHARED_API void set_Zoom (double value)
 Zooming factor of the stamp. Allows to scale stamp. Please note that pair of properties ZoomX and ZoomY allows to set zoom factor for every axe separately. Setting of this property changes both ZoomX and ZoomY properties. If ZoomX and ZoomY are different then Zoom property returns ZoomX value. More...
 
ASPOSE_PDF_SHARED_API double get_RotateAngle ()
 Gets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle. More...
 
ASPOSE_PDF_SHARED_API void set_RotateAngle (double value)
 Sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle. More...
 
virtual ASPOSE_PDF_SHARED_API void Put (System::SharedPtr< Page > page)=0
 Adds stamp on the page. More...
 
ASPOSE_PDF_SHARED_API void setStampId (int32_t value)
 Sets stamp Id. More...
 
ASPOSE_PDF_SHARED_API int32_t getStampId ()
 Returns stamp ID. More...
 
ASPOSE_PDF_SHARED_API Stamp ()
 
- Public Member Functions inherited from System::Object
ASPOSECPP_SHARED_API Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ASPOSECPP_SHARED_API ~Object ()
 Destroys object. Frees all internal data structures. More...
 
ASPOSECPP_SHARED_API Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared reference counter. More...
 
ASPOSECPP_SHARED_API void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
ASPOSECPP_SHARED_API void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual ASPOSECPP_SHARED_API int32_t GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual ASPOSECPP_SHARED_API String ToString () const
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual ASPOSECPP_SHARED_API const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual ASPOSECPP_SHARED_API bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual ASPOSECPP_SHARED_API void SetTemplateWeakPtr (uint32_t argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
virtual ASPOSECPP_SHARED_API bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool Equals (double const &objA, double const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 Specialization of Object::ReferenceEquals for case of string and nullptr. More...
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 Specialization of Object::ReferenceEquals for case of strings. More...
 

Protected Member Functions

virtual System::SharedPtr< RectanglegetRect ()=0
 Returns rectangle of the stamp on page. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< PointgetPoint (System::SharedPtr< Page > page)
 Returns point if the stamp on the page. More...
 
void UpdateCache (System::SharedPtr< Document > doc)
 This method checks document to which stamp is applied. If the document was changed then cached objects (for example Form XObject, Image, graphic state etc) Are cleared. This is made to avoid document damage (see for example 36049) More...
 
virtual ASPOSE_PDF_SHARED_API void ClearCache ()
 
System::SharedPtr< Engine::Data::IPdfDictionary > GetParentResources (System::SharedPtr< Engine::Data::IPdfDictionary > dict)
 
System::SharedPtr< Engine::Data::IPdfDictionary > GetResources (System::SharedPtr< Page > page)
 
ASPOSE_PDF_SHARED_API System::String addExtGState (System::SharedPtr< Page > page)
 Add G state on the page for stamp. More...
 
virtual ASPOSE_PDF_SHARED_API System::SharedPtr< MatrixgetMatrix (System::SharedPtr< Page > page)
 Calculates matrix of the stamp More...
 
virtual ASPOSE_PDF_SHARED_API System::SharedPtr< MatrixgetStampRotationMatrix ()
 Retuns matrix which used for rotation the stamp; More...
 
virtual ASPOSE_PDF_SHARED_API System::SharedPtr< MatrixgetPageRotationMatrix (System::SharedPtr< Page > page)
 Returns transformation matrix for page. More...
 
virtual ASPOSE_PDF_SHARED_API System::SharedPtr< MatrixgetScaleMatrix ()
 Returns scaling matrix of the stamp. More...
 
virtual ASPOSE_PDF_SHARED_API System::SharedPtr< MatrixgetSizeMatrix ()
 This matrix used in CM operator; it's must be different for Image Stamp More...
 
virtual ASPOSE_PDF_SHARED_API void drawStampOnPage (System::SharedPtr< Page > page, System::String name)
 Write operators for showing stamp to the page contents. More...
 
void updateStampId (System::SharedPtr< Engine::Data::IPdfPrimitive > instance)
 

Protected Attributes

Aspose::Pdf::HorizontalAlignment _horizontalAlignment
 Horizontal alignment of the stamp. More...
 
Aspose::Pdf::VerticalAlignment _verticalAlignment
 Vertical alignemtn of the stamp. More...
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Implements C# typeof(System.Object) construct. More...
 

Detailed Description

An abstract class for various kinds of stamps which come as descendants.

Constructor & Destructor Documentation

◆ Stamp()

ASPOSE_PDF_SHARED_API Aspose::Pdf::Stamp::Stamp ( )

Member Function Documentation

◆ addExtGState()

ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::Stamp::addExtGState ( System::SharedPtr< Page page)
protected

Add G state on the page for stamp.

Parameters
pagePage where
Returns
Name of added GState.

◆ ClearCache()

virtual ASPOSE_PDF_SHARED_API void Aspose::Pdf::Stamp::ClearCache ( )
protectedvirtual

◆ drawStampOnPage()

virtual ASPOSE_PDF_SHARED_API void Aspose::Pdf::Stamp::drawStampOnPage ( System::SharedPtr< Page page,
System::String  name 
)
protectedvirtual

Write operators for showing stamp to the page contents.

Parameters
pagePage where stamp should be drawn.
nameName of the stamp.

◆ get_Background()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Stamp::get_Background ( ) const

Sets or gets a bool value that indicates the content is stamped as background. If the value is true, the stamp content is layed at the bottom. By defalt, the value is false, the stamp content is layed at the top.

◆ get_BottomMargin()

ASPOSE_PDF_SHARED_API double Aspose::Pdf::Stamp::get_BottomMargin ( ) const

Gets bottom margin of stamp.

◆ get_Height()

virtual ASPOSE_PDF_SHARED_API double Aspose::Pdf::Stamp::get_Height ( )
virtual

Desired height of the stamp on the page.

Reimplemented in Aspose::Pdf::TextStamp, and Aspose::Pdf::ImageStamp.

◆ get_HorizontalAlignment()

ASPOSE_PDF_SHARED_API Aspose::Pdf::HorizontalAlignment Aspose::Pdf::Stamp::get_HorizontalAlignment ( ) const

Gets Horizontal alignment of stamp on the page.

◆ get_LeftMargin()

ASPOSE_PDF_SHARED_API double Aspose::Pdf::Stamp::get_LeftMargin ( ) const

Gets left margin of stamp.

◆ get_Opacity()

ASPOSE_PDF_SHARED_API double Aspose::Pdf::Stamp::get_Opacity ( ) const

Gets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0.

◆ get_OutlineOpacity()

ASPOSE_PDF_SHARED_API double Aspose::Pdf::Stamp::get_OutlineOpacity ( ) const

Gets a value to indicate the stamp outline opacity. The value is from 0.0 to 1.0. By default the value is 1.0.

◆ get_OutlineWidth()

ASPOSE_PDF_SHARED_API double Aspose::Pdf::Stamp::get_OutlineWidth ( ) const

Gets a value of the stamp outline width. By default the value is 1.0.

◆ get_RightMargin()

ASPOSE_PDF_SHARED_API double Aspose::Pdf::Stamp::get_RightMargin ( ) const

Gets right margin of stamp.

◆ get_Rotate()

ASPOSE_PDF_SHARED_API Rotation Aspose::Pdf::Stamp::get_Rotate ( )

Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.

◆ get_RotateAngle()

ASPOSE_PDF_SHARED_API double Aspose::Pdf::Stamp::get_RotateAngle ( )

Gets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle.

◆ get_TopMargin()

ASPOSE_PDF_SHARED_API double Aspose::Pdf::Stamp::get_TopMargin ( ) const

Gets top margin of stamp.

◆ get_VerticalAlignment()

ASPOSE_PDF_SHARED_API Aspose::Pdf::VerticalAlignment Aspose::Pdf::Stamp::get_VerticalAlignment ( ) const

Gets vertical alignment of stamp on page.

◆ get_Width()

virtual ASPOSE_PDF_SHARED_API double Aspose::Pdf::Stamp::get_Width ( )
virtual

Desired width of the stamp on the page.

Reimplemented in Aspose::Pdf::TextStamp, and Aspose::Pdf::ImageStamp.

◆ get_XIndent()

ASPOSE_PDF_SHARED_API double Aspose::Pdf::Stamp::get_XIndent ( ) const

Horizontal stamp coordinate, starting from the left.

◆ get_YIndent()

ASPOSE_PDF_SHARED_API double Aspose::Pdf::Stamp::get_YIndent ( ) const

Vertical stamp coordinate, starting from the bottom.

◆ get_Zoom()

ASPOSE_PDF_SHARED_API double Aspose::Pdf::Stamp::get_Zoom ( ) const

Zooming factor of the stamp. Allows to scale stamp. Please note that pair of properties ZoomX and ZoomY allows to set zoom factor for every axe separately. Setting of this property changes both ZoomX and ZoomY properties. If ZoomX and ZoomY are different then Zoom property returns ZoomX value.

◆ get_ZoomX()

ASPOSE_PDF_SHARED_API double Aspose::Pdf::Stamp::get_ZoomX ( ) const

Horizontal zooming factor of the stamp. Allows to scale stamp horizontally.

◆ get_ZoomY()

ASPOSE_PDF_SHARED_API double Aspose::Pdf::Stamp::get_ZoomY ( ) const

Vertical zooming factor of the stamp. Allows to scale stamp vertically.

◆ getMatrix()

virtual ASPOSE_PDF_SHARED_API System::SharedPtr<Matrix> Aspose::Pdf::Stamp::getMatrix ( System::SharedPtr< Page page)
protectedvirtual

Calculates matrix of the stamp

Parameters
pagePage for which matrix is requested.
Returns
Matrix of the page.

◆ getPageRotationMatrix()

virtual ASPOSE_PDF_SHARED_API System::SharedPtr<Matrix> Aspose::Pdf::Stamp::getPageRotationMatrix ( System::SharedPtr< Page page)
protectedvirtual

Returns transformation matrix for page.

Parameters
pagePage where stamp is placed.
Returns
Rotation matrix of the stamp.

◆ GetParentResources()

System::SharedPtr<Engine::Data::IPdfDictionary> Aspose::Pdf::Stamp::GetParentResources ( System::SharedPtr< Engine::Data::IPdfDictionary >  dict)
protected

◆ getPoint()

ASPOSE_PDF_SHARED_API System::SharedPtr<Point> Aspose::Pdf::Stamp::getPoint ( System::SharedPtr< Page page)
protected

Returns point if the stamp on the page.

Parameters
pagePage where the stamp is placed.
Returns
Point of the stamp.

◆ getRect()

virtual System::SharedPtr<Rectangle> Aspose::Pdf::Stamp::getRect ( )
protectedpure virtual

Returns rectangle of the stamp on page.

Returns
Stamp rectangle.

Implemented in Aspose::Pdf::TextStamp, Aspose::Pdf::ImageStamp, and Aspose::Pdf::PdfPageStamp.

◆ GetResources()

System::SharedPtr<Engine::Data::IPdfDictionary> Aspose::Pdf::Stamp::GetResources ( System::SharedPtr< Page page)
protected

◆ getScaleMatrix()

virtual ASPOSE_PDF_SHARED_API System::SharedPtr<Matrix> Aspose::Pdf::Stamp::getScaleMatrix ( )
protectedvirtual

Returns scaling matrix of the stamp.

Returns
Scale matrix of the stamp.

◆ getSizeMatrix()

virtual ASPOSE_PDF_SHARED_API System::SharedPtr<Matrix> Aspose::Pdf::Stamp::getSizeMatrix ( )
protectedvirtual

This matrix used in CM operator; it's must be different for Image Stamp

Returns
Requested matrix.

Reimplemented in Aspose::Pdf::ImageStamp.

◆ getStampId()

ASPOSE_PDF_SHARED_API int32_t Aspose::Pdf::Stamp::getStampId ( )

Returns stamp ID.

Returns
Identifier of the stamp.

◆ getStampRotationMatrix()

virtual ASPOSE_PDF_SHARED_API System::SharedPtr<Matrix> Aspose::Pdf::Stamp::getStampRotationMatrix ( )
protectedvirtual

Retuns matrix which used for rotation the stamp;

Returns
Rotation matrix for the stamp.

◆ Put()

virtual ASPOSE_PDF_SHARED_API void Aspose::Pdf::Stamp::Put ( System::SharedPtr< Page page)
pure virtual

Adds stamp on the page.

Parameters
pageThe page to add stamp.

Implemented in Aspose::Pdf::TextStamp, Aspose::Pdf::ImageStamp, Aspose::Pdf::PageNumberStamp, and Aspose::Pdf::PdfPageStamp.

◆ set_Background()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Stamp::set_Background ( bool  value)

Sets or gets a bool value that indicates the content is stamped as background. If the value is true, the stamp content is layed at the bottom. By defalt, the value is false, the stamp content is layed at the top.

◆ set_BottomMargin()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Stamp::set_BottomMargin ( double  value)

Sets bottom margin of stamp.

◆ set_Height()

virtual ASPOSE_PDF_SHARED_API void Aspose::Pdf::Stamp::set_Height ( double  value)
virtual

Desired height of the stamp on the page.

Reimplemented in Aspose::Pdf::TextStamp, and Aspose::Pdf::ImageStamp.

◆ set_HorizontalAlignment()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Stamp::set_HorizontalAlignment ( Aspose::Pdf::HorizontalAlignment  value)

Sets Horizontal alignment of stamp on the page.

◆ set_LeftMargin()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Stamp::set_LeftMargin ( double  value)

Sets left margin of stamp.

◆ set_Opacity()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Stamp::set_Opacity ( double  value)

Sets a value to indicate the stamp opacity. The value is from 0.0 to 1.0. By default the value is 1.0.

◆ set_OutlineOpacity()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Stamp::set_OutlineOpacity ( double  value)

Sets a value to indicate the stamp outline opacity. The value is from 0.0 to 1.0. By default the value is 1.0.

◆ set_OutlineWidth()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Stamp::set_OutlineWidth ( double  value)

Sets a value of the stamp outline width. By default the value is 1.0.

◆ set_RightMargin()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Stamp::set_RightMargin ( double  value)

Sets right margin of stamp.

◆ set_Rotate()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Stamp::set_Rotate ( Rotation  value)

Sets or gets the rotation of stamp content according Rotation values. Note. This property is for set angles which are multiples of 90 degrees (0, 90, 180, 270 degrees). To set arbitrary angle use RotateAngle property. If angle set by ArbitraryAngle is not multiple of 90 then Rotate property returns Rotation.None.

◆ set_RotateAngle()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Stamp::set_RotateAngle ( double  value)

Sets rotate angle of stamp in degrees. This property allows to set arbitrary rotate angle.

◆ set_TopMargin()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Stamp::set_TopMargin ( double  value)

Sets top margin of stamp.

◆ set_VerticalAlignment()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Stamp::set_VerticalAlignment ( Aspose::Pdf::VerticalAlignment  value)

Sets vertical alignment of stamp on page.

◆ set_Width()

virtual ASPOSE_PDF_SHARED_API void Aspose::Pdf::Stamp::set_Width ( double  value)
virtual

Desired width of the stamp on the page.

Reimplemented in Aspose::Pdf::TextStamp, and Aspose::Pdf::ImageStamp.

◆ set_XIndent()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Stamp::set_XIndent ( double  value)

Horizontal stamp coordinate, starting from the left.

◆ set_YIndent()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Stamp::set_YIndent ( double  value)

Vertical stamp coordinate, starting from the bottom.

◆ set_Zoom()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Stamp::set_Zoom ( double  value)

Zooming factor of the stamp. Allows to scale stamp. Please note that pair of properties ZoomX and ZoomY allows to set zoom factor for every axe separately. Setting of this property changes both ZoomX and ZoomY properties. If ZoomX and ZoomY are different then Zoom property returns ZoomX value.

◆ set_ZoomX()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Stamp::set_ZoomX ( double  value)

Horizontal zooming factor of the stamp. Allows to scale stamp horizontally.

◆ set_ZoomY()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Stamp::set_ZoomY ( double  value)

Vertical zooming factor of the stamp. Allows to scale stamp vertically.

◆ setStampId()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Stamp::setStampId ( int32_t  value)

Sets stamp Id.

Parameters
valueNew value of Stamp ID.

◆ UpdateCache()

void Aspose::Pdf::Stamp::UpdateCache ( System::SharedPtr< Document doc)
protected

This method checks document to which stamp is applied. If the document was changed then cached objects (for example Form XObject, Image, graphic state etc) Are cleared. This is made to avoid document damage (see for example 36049)

Parameters
doc

◆ updateStampId()

void Aspose::Pdf::Stamp::updateStampId ( System::SharedPtr< Engine::Data::IPdfPrimitive >  instance)
protected

Member Data Documentation

◆ _horizontalAlignment

Aspose::Pdf::HorizontalAlignment Aspose::Pdf::Stamp::_horizontalAlignment
protected

Horizontal alignment of the stamp.

◆ _verticalAlignment

Aspose::Pdf::VerticalAlignment Aspose::Pdf::Stamp::_verticalAlignment
protected

Vertical alignemtn of the stamp.