Create, Move, or Delete Text and Images
ComPDFKit provides methods to do various operations like creating text/images.
/**
* Create a blank text block.
* @param rect The area of the text box.
* @param attributes The text font properties.
* @param page The created page number.
* @return Returns whether the creation is successful.
*/
- (BOOL)createEmptyStringBounds:(CGRect)rect withAttributes:(NSDictionary<NSAttributedStringKey, id> *)attributes page:(CPDFPage *)page;
/*
* Adds interface of the image.
*/
- (BOOL)createEmptyImage:(CGRect)rect page:(CPDFPage *)page path:(NSString*)imagePath;
ComPDFKit provides methods to set the position of text and image blocks.
/**
* Sets the position of the text (image) block
*/
- (void)setBoundsEditArea:(CPDFEditArea *)editArea withBounds:(CGRect)bounds;
ComPDFKit provides methods to delete text blocks and image blocks.
/**
* Delete text (image) block
*/
- (void)deleteEditingArea:(CPDFEditArea *)editArea;