CPDFWatermark Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | CPDFWatermark.h |
– initWithDocument:type:
Initializes the watermark.
- (instancetype)initWithDocument:(CPDFDocument *)document type:(CPDFWatermarkType)typeParameters
document |
The document with which the watermark is associated. |
|---|---|
type |
The type index of the watermark. |
Discussion
Initializes the watermark.
See Also
Declared In
CPDFWatermark.h
type
Returns the type for the watermark.
@property (nonatomic, readonly) CPDFWatermarkType typeDiscussion
Returns the type for the watermark.
See Also
Declared In
CPDFWatermark.h
cFont
fontSize
)
@property (nonatomic, strong) CPDFKitPlatformFont *DEPRECATED_MSG_ATTRIBUTE ( "use setCFont:setFontSize:" )Discussion
Method to get / set the text font for the watermark (image watermark does not work).
The text font for the watermark; may return NULL if the watermark was created with image. Default Font : Helvetica 24
Declared In
CPDFWatermark.h
scale
Method to get / set the scale factor for the watermark.
@property (nonatomic, assign) CGFloat scaleDiscussion
Method to get / set the scale factor for the watermark.
Default is 1.0.
Declared In
CPDFWatermark.h
rotation
Method to get / set the rotation for the watermark.
@property (nonatomic, assign) CGFloat rotationDiscussion
Method to get / set the rotation for the watermark.
Range : 0~360, Default is 0.0.
Declared In
CPDFWatermark.h
pageRange
Method to get / set the page range for the watermark.
@property (nonatomic, assign) NSRange pageRangeDiscussion
Method to get / set the page range for the watermark.
If not set, default to all pages.
Declared In
CPDFWatermark.h
pageString
Method to get / set the page range for the watermark by string.
@property (nonatomic, strong) NSString *pageStringDiscussion
Method to get / set the page range for the watermark by string.
A page range string, Such as “0,3,5-7”.
Declared In
CPDFWatermark.h
verticalPosition
Method to get / set the vertical position for the watermark.
@property (nonatomic, assign) CPDFWatermarkVerticalPosition verticalPositionDiscussion
Method to get / set the vertical position for the watermark.
Default is CPDFWatermarkVerticalPositionCenter.
See Also
Declared In
CPDFWatermark.h
horizontalPosition
Method to get / set the horizontal position for the watermark.
@property (nonatomic, assign) CPDFWatermarkHorizontalPosition horizontalPositionDiscussion
Method to get / set the horizontal position for the watermark.
Default is CPDFWatermarkHorizontalPositionCenter.
See Also
Declared In
CPDFWatermark.h
tx
Method to get / set the horizontal translation for the watermark.
@property (nonatomic, assign) CGFloat txDiscussion
Method to get / set the horizontal translation for the watermark.
The translation relative to the horizontal position.
Declared In
CPDFWatermark.h
ty
Method to get / set the vertical translation for the watermark.
@property (nonatomic, assign) CGFloat tyDiscussion
Method to get / set the vertical translation for the watermark.
The translation relative to the vertical position.
Declared In
CPDFWatermark.h
isFront
Method to get/set watermark to locate in front of the content.
@property (nonatomic, assign) BOOL isFrontDiscussion
Method to get/set watermark to locate in front of the content.
Declared In
CPDFWatermark.h
verticalSpacing
Method to get / set the vertical spacing for the tiled watermark.
@property (nonatomic, assign) CGFloat verticalSpacingDiscussion
Method to get / set the vertical spacing for the tiled watermark.
Declared In
CPDFWatermark.h
horizontalSpacing
Method to get / set the horizontal spacing for the tiled watermark.
@property (nonatomic, assign) CGFloat horizontalSpacingDiscussion
Method to get / set the horizontal spacing for the tiled watermark.
Declared In
CPDFWatermark.h