|
CFx SDK Documentation 2026 SP0
|
#include <PdfPublishWatermark.h>
Public Member Functions | |
| ODRX_DECLARE_MEMBERS (OdWatermark) | |
| ODRX_HEAP_OPERATORS () | |
| virtual | ~OdWatermark () |
| void | setSize (const OdUInt32 width, const OdUInt32 height) |
| void | setOpacity (const OdUInt8 &value) |
| void | addText (const OdTextPtr &text, const OdRect &location, const double rotation=0.) |
| void | addImage (const OdImagePtr &image, const OdRect &location, const double rotation=0.) |
| void | getSize (OdUInt32 &width, OdUInt32 &height) const |
| void | getOpacity (OdUInt8 &value) const |
| void | getTexts (OdTextPtrArray &texts, OdRectArray &locations, OdDoubleArray &rotations) const |
| void | getImages (OdImagePtrArray &images, OdRectArray &locations, OdDoubleArray &rotations) const |
Public Member Functions inherited from OdPdfPublish::OdObject | |
| ODRX_DECLARE_MEMBERS (OdObject) | |
| ODRX_HEAP_OPERATORS () | |
| virtual | ~OdObject () |
| virtual bool | isEmpty () const |
| virtual bool | isValid () const |
| virtual void | clear () |
Public Member Functions inherited from OdRxObject | |
| ODRX_HEAP_OPERATORS () | |
| OdRxObject () | |
| virtual | ~OdRxObject () |
| virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
| virtual OdRxObject * | x (const OdRxClass *pClass) const |
| virtual OdRxClass * | isA () const |
| virtual void | addRef ()=0 |
| virtual void | release ()=0 |
| virtual long | numRefs () const |
| bool | isKindOf (const OdRxClass *pClass) const |
| virtual OdRxObjectPtr | clone () const |
| virtual void | copyFrom (const OdRxObject *pSource) |
| virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
| virtual bool | isEqualTo (const OdRxObject *pOther) const |
Protected Member Functions | |
| OdWatermark () | |
Protected Member Functions inherited from OdPdfPublish::OdObject | |
| OdObject (OdPublishObjectImpl *pImpl) | |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
| static OdRxObjectPtr | cast (const OdRxObject *pointer) |
| static OdRxClass * | desc () |
| static void | rxInit () |
| static void | rxUninit () |
This class implements functionality for work with a watermark in a PDF document created with Publish SDK.
Definition at line 47 of file PdfPublishWatermark.h.
|
protected |
|
virtual |
Destroys the watermark object.
| void OdPdfPublish::OdWatermark::addImage | ( | const OdImagePtr & | image, |
| const OdRect & | location, | ||
| const double | rotation = 0. ) |
Adds an <link OdPdfPublish::OdImage, image> to the watermark.
| image | [in] A smart pointer to an image object that should be added. |
| location | [in] A <link OdPdfPublish::OdRect, rectangle> that specifies the location of an added image within the watermark. It determines where the image is placed on the watermark. |
| rotation | [in] A rotation angle value to be set. |
| void OdPdfPublish::OdWatermark::addText | ( | const OdTextPtr & | text, |
| const OdRect & | location, | ||
| const double | rotation = 0. ) |
Adds a <link OdPdfPublish::OdText, text> label to the watermark.
| text | [in] A smart pointer to a text label that should be added. |
| location | [in] A <link OdPdfPublish::OdRect, rectangle> that specifies the location of an added text label within the watermark. It determines where the text is placed on the watermark. |
| rotation | [in] A rotation angle value to be set. |
| void OdPdfPublish::OdWatermark::getImages | ( | OdImagePtrArray & | images, |
| OdRectArray & | locations, | ||
| OdDoubleArray & | rotations ) const |
Returns all <link OdPdfPublish::OdImage, images> that the watermark contains and their locations. The method fills three passed arrays with text label objects, their locations and rotation angles, then returns these arrays to a calling subroutine.
| images | [out] A placeholder for the watermark images array. |
| locations | [out] A placeholder for the image locations array. |
| rotations | [out] A placeholder for the array of rotation angles for images. |
Returns the icon opacity for the watermark object. The method fills a passed unsigned 8-bit integer value with the opacity value and returns it to a calling subroutine.
| value | [in] A placeholder for the opacity value. |
Returns the current watermark internal size (width and height in pixels). The method fills the passed integer values representing width and height of the watermark and returns them to the calling subroutine.
| width | [out] A placeholder for the width value. |
| height | [out] A placeholder for the height value. |
| void OdPdfPublish::OdWatermark::getTexts | ( | OdTextPtrArray & | texts, |
| OdRectArray & | locations, | ||
| OdDoubleArray & | rotations ) const |
Returns all <link OdPdfPublish::OdText, text labels> that the watermark contains and their locations. The method fills three passed arrays with text label objects, their locations and rotation angles, then returns these arrays to a calling subroutine.
| texts | [out] A placeholder for the watermark text labels array. |
| locations | [out] A placeholder for the text label locations array. |
| rotations | [out] A placeholder for the array of rotation angles for text labels. |
| OdPdfPublish::OdWatermark::ODRX_DECLARE_MEMBERS | ( | OdWatermark | ) |
| OdPdfPublish::OdWatermark::ODRX_HEAP_OPERATORS | ( | ) |
Sets the opacity for the watermark object.
| value | [in] A new opacity value. |
Sets the watermark internal size in pixels.
| width | [in] A width value in pixels. |
| height | [in] A height value in pixels. |