Foxit PDF SDK  9.1
FSWatermarkSettings Class Reference
Inheritance diagram for FSWatermarkSettings:

Instance Methods

(void) - dealloc
 
(void *) - getCptr
 
(id) - init
 Constructor.
More...
 
(id) - initWithCptr:swigOwnCObject:
 
(id) - initWithPosition:offset_x:offset_y:flags:scale_x:scale_y:rotation:opacity:
 Constructor, with parameters.
More...
 
(id) - initWithSettings:
 Constructor, with another watermark settings object.
More...
 
(void) - set:offset_x:offset_y:flags:scale_x:scale_y:rotation:opacity:
 Set value.
More...
 

Protected Attributes

BOOL swigCMemOwn
 
void * swigCPtr
 

Properties

unsigned int flags
 Watermark flags.
More...
 
float offset_x
 Horizontal offset, in points.
More...
 
float offset_y
 Vertical offset, in points.
More...
 
int opacity
 Opacity in percents. Valid range: from 0 to 100. 0 for fully transparent and 100 for fully opaque.
More...
 
FSPosition position
 Watermark position.
More...
 
float rotation
 Rotation angle in degrees.
More...
 
float scale_x
 Horizontal scale coefficient. It should be greater than 0.001f.
More...
 
float scale_y
 Vertical scale coefficient. It should be greater than 0.001f.
More...
 

Detailed Description

This class represents the watermark settings used to construct a watermark object from any supported resource.

Method Documentation

◆ dealloc

- (void) dealloc

◆ getCptr

- (void*) getCptr

◆ init

- (id) init

Constructor.

◆ initWithCptr:swigOwnCObject:

- (id) initWithCptr: (void *)  cptr
swigOwnCObject: (BOOL)  ownCObject 

◆ initWithPosition:offset_x:offset_y:flags:scale_x:scale_y:rotation:opacity:

- (id) initWithPosition: (FSPosition)  position
offset_x: (float)  offset_x
offset_y: (float)  offset_y
flags: (unsigned int)  flags
scale_x: (float)  scale_x
scale_y: (float)  scale_y
rotation: (float)  rotation
opacity: (int)  opacity 

Constructor, with parameters.

Parameters
[in]positionWatermark position. Please refer to values starting from FSPosTopLeft and this should be one of these values.
[in]offset_xHorizontal offset, in points.
[in]offset_yVertical offset, in points.
[in]flagsWatermark flags. Please refer to values starting from FSWatermarkSettingsFlagASPageContents and this can be one or a combination of these values.
[in]scale_xHorizontal scale coefficient. It should be greater than 0.001f.
[in]scale_yVertical scale coefficient. It should be greater than 0.001f.
[in]rotationRotation angle in degrees.
[in]opacityOpacity in percents. Valid range: from 0 to 100. 0 for fully transparent and 100 for fully opaque.

◆ initWithSettings:

- (id) initWithSettings: (FSWatermarkSettings*)  settings

Constructor, with another watermark settings object.

Parameters
[in]settingsAnother watermark settings object.

◆ set:offset_x:offset_y:flags:scale_x:scale_y:rotation:opacity:

- (void) set: (FSPosition)  position
offset_x: (float)  offset_x
offset_y: (float)  offset_y
flags: (unsigned int)  flags
scale_x: (float)  scale_x
scale_y: (float)  scale_y
rotation: (float)  rotation
opacity: (int)  opacity 

Set value.

Parameters
[in]positionWatermark position. Please refer to values starting from FSPosTopLeft and this should be one of these values.
[in]offset_xHorizontal offset, in points.
[in]offset_yVertical offset, in points.
[in]flagsWatermark flags. Please refer to values starting from FSWatermarkSettingsFlagASPageContents and this can be one or a combination of these values.
[in]scale_xHorizontal scale coefficient. It should be greater than 0.001f.
[in]scale_yVertical scale coefficient. It should be greater than 0.001f.
[in]rotationRotation angle in degrees.
[in]opacityOpacity in percents. Valid range: from 0 to 100. 0 for fully transparent and 100 for fully opaque.
Returns
None.

Member Data Documentation

◆ swigCMemOwn

- (BOOL) swigCMemOwn
protected

◆ swigCPtr

- (void*) swigCPtr
protected

Property Documentation

◆ flags

- (unsigned int) flags
readwritenonatomicassign

Watermark flags.

Please refer to values starting from FSWatermarkSettingsFlagASPageContents and this can be one or a combination of these values.

◆ offset_x

- (float) offset_x
readwritenonatomicassign

Horizontal offset, in points.

◆ offset_y

- (float) offset_y
readwritenonatomicassign

Vertical offset, in points.

◆ opacity

- (int) opacity
readwritenonatomicassign

Opacity in percents. Valid range: from 0 to 100. 0 for fully transparent and 100 for fully opaque.

◆ position

- (FSPosition) position
readwritenonatomicassign

Watermark position.

Please refer to values starting from FSPosTopLeft and this should be one of these values.

◆ rotation

- (float) rotation
readwritenonatomicassign

Rotation angle in degrees.

◆ scale_x

- (float) scale_x
readwritenonatomicassign

Horizontal scale coefficient. It should be greater than 0.001f.

◆ scale_y

- (float) scale_y
readwritenonatomicassign

Vertical scale coefficient. It should be greater than 0.001f.