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

Instance Methods

(void) - dealloc
 
(void *) - getCptr
 
(id) - init
 Constructor.
More...
 
(id) - initWithCptr:swigOwnCObject:
 
(id) - initWithFont:font_size:color:style:line_space:alignment:
 Constructor, with parameters.
More...
 
(id) - initWithProperties:
 Constructor, with another watermark text properties object.
More...
 
(void) - set:font_size:color:style:line_space:alignment:
 Set value.
More...
 

Protected Attributes

BOOL swigCMemOwn
 
void * swigCPtr
 

Properties

FSAlignment alignment
 Text horizontal alignment. The default value is FSAlignmentLeft.
More...
 
unsigned int color
 Text color. Format: 0xRRGGBB. The default value is 0x000000.
More...
 
FSFontfont
 A font object used for the text.
More...
 
float font_size
 Font size in points. The default value is 24.0.
More...
 
FSWatermarkTextPropertiesFontStyle font_style
 Font style.The default value is FSWatermarkTextPropertiesFontStyleNormal.
More...
 
float line_space
 Space between vertical center of lines, in line heights. The default value is 1.0.
More...
 

Detailed Description

This class represents the watermark text settings used to construct a watermark object from text.

Method Documentation

◆ dealloc

- (void) dealloc

◆ getCptr

- (void*) getCptr

◆ init

- (id) init

Constructor.

◆ initWithCptr:swigOwnCObject:

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

◆ initWithFont:font_size:color:style:line_space:alignment:

- (id) initWithFont: (FSFont*)  font
font_size: (float)  font_size
color: (unsigned int)  color
style: (FSWatermarkTextPropertiesFontStyle style
line_space: (float)  line_space
alignment: (FSAlignment alignment 

Constructor, with parameters.

The parameters line_space and alignment don't support tiled watermark, and will have no effect after setting.

Parameters
[in]fontA valid font object used for the text.
[in]font_sizeFont size in points.
[in]colorText color. Format: 0xRRGGBB.
[in]styleFont style. It should be one of the following values:
[in]line_spaceSpace between vertical center of lines, in line heights. This value specifies the multiple of line heights for the space between vertical center of lines. Valid range: from 0 to 10 (not including 0 but including 10). If this value is above 10, 10 will be used as default for the text watermark.
[in]alignmentText horizontal alignment. It should be one of the following values:

◆ initWithProperties:

- (id) initWithProperties: (FSWatermarkTextProperties*)  properties

Constructor, with another watermark text properties object.

Parameters
[in]propertiesAnother watermark text properties object.

◆ set:font_size:color:style:line_space:alignment:

- (void) set: (FSFont*)  font
font_size: (float)  font_size
color: (unsigned int)  color
style: (FSWatermarkTextPropertiesFontStyle style
line_space: (float)  line_space
alignment: (FSAlignment alignment 

Set value.

The parameters line_space and alignment don't support tiled watermark, and will have no effect after setting.

Parameters
[in]fontA valid font object used for the text.
[in]font_sizeFont size in points.
[in]colorText color. Format: 0xRRGGBB.
[in]styleFont style. It should be one of the following values:
[in]line_spaceSpace between vertical center of lines, in line heights. This value specifies the multiple of line heights for the space between vertical center of lines. Valid range: from 0 to 10 (not including 0 but including 10). If this value is above 10, 10 will be used as default for the text watermark.
[in]alignmentText horizontal alignment. It should be one of the following values:
Returns
None.

Member Data Documentation

◆ swigCMemOwn

- (BOOL) swigCMemOwn
protected

◆ swigCPtr

- (void*) swigCPtr
protected

Property Documentation

◆ alignment

- (FSAlignment) alignment
readwritenonatomicassign

Text horizontal alignment. The default value is FSAlignmentLeft.

It should be one of the following macro definitions:



◆ color

- (unsigned int) color
readwritenonatomicassign

Text color. Format: 0xRRGGBB. The default value is 0x000000.

◆ font

- (FSFont *) font
readwritenonatomiccopy

A font object used for the text.

◆ font_size

- (float) font_size
readwritenonatomicassign

Font size in points. The default value is 24.0.

◆ font_style

- (FSWatermarkTextPropertiesFontStyle) font_style
readwritenonatomicassign

◆ line_space

- (float) line_space
readwritenonatomicassign

Space between vertical center of lines, in line heights. The default value is 1.0.

This value is used to specify the multiple of line heights for the space between vertical center of lines. Valid range: from 0 to 10 (not including 0 but including 10). If this value is above 10, 10 will be used as default for the text watermark.