CPDFStampAnnotation Class Reference

Inherits from CPDFAnnotation : NSObject
Declared in CPDFStampAnnotation.h

Overview

A CPDFStampAnnotation object allows you to display a word or phrase in a PDF page.

A CPDFStampAnnotation object should have an appearance stream associated with it; otherwise, nothing useful is rendered.

– initWithDocument:image:

Initializes CPDFStampAnnotation object with image.

- (instancetype)initWithDocument:(CPDFDocument *)document image:(CPDFKitPlatformImage *)image

Discussion

Initializes CPDFStampAnnotation object with image.

Declared In

CPDFStampAnnotation.h

– initWithDocument:type:

Initializes CPDFStampAnnotation object with standard type.

- (instancetype)initWithDocument:(CPDFDocument *)document type:(NSInteger)type

Discussion

Initializes CPDFStampAnnotation object with standard type.

Declared In

CPDFStampAnnotation.h

– initWithDocument:text:detailText:style:shape:

Initializes CPDFStampAnnotation object with text.

- (instancetype)initWithDocument:(CPDFDocument *)document text:(NSString *)text detailText:(NSString *)detailText style:(CPDFStampStyle)style shape:(CPDFStampShape)shape

Discussion

Initializes CPDFStampAnnotation object with text.

Declared In

CPDFStampAnnotation.h

– initWithDocument:text:detailText:dateText:color:

Initializes CPDFStampAnnotation object with digital stamp type.

- (instancetype)initWithDocument:(CPDFDocument *)document text:(NSString *)text detailText:(NSString *)detailText dateText:(NSString *)dateText color:(CPDFKitPlatformColor *)color

Discussion

Initializes CPDFStampAnnotation object with digital stamp type.

Declared In

CPDFStampAnnotation.h

– stampType

Gets the stamp type.

- (CPDFStampType)stampType

Discussion

Gets the stamp type.

See Also

Declared In

CPDFStampAnnotation.h

– stampImage

Gets image for the appearance stream of the stamp annotation.

- (CPDFKitPlatformImage *)stampImage

Discussion

Gets image for the appearance stream of the stamp annotation.

Declared In

CPDFStampAnnotation.h

– setSaveRectRotationPoints:

Method to get / set the all rect vertex points after rotation.

- (void)setSaveRectRotationPoints:(NSArray<NSValue*> *)saveRectRotationPoints

Discussion

Method to get / set the all rect vertex points after rotation.

Vertex points of the current page.

Declared In

CPDFStampAnnotation.h

– saveRectRotationPoints

- (NSArray<NSValue*> *)saveRectRotationPoints

– setSaveSourceRect:

Method to get / set the rect befer rotation.

- (void)setSaveSourceRect:(CGRect)saveSourceRect

Discussion

Method to get / set the rect befer rotation.

rect of the current page.

Declared In

CPDFStampAnnotation.h

– saveSourceRect

- (CGRect)saveSourceRect

  annotationRotation

Sets the rotation angle for the annotation in degrees.

@property (nonatomic, assign) NSInteger annotationRotation

Discussion

Sets the rotation angle for the annotation in degrees.

Rotation on a annotation. Must be -180 ~ 180.

Declared In

CPDFStampAnnotation.h