Edit Text and Images Properties
ComPDFKit provides multiple methods to modify text properties. You can modify text font size, name, color, alignment, italic, bold, transparency, etc.
The following code shows you how to set text to 12pt, red, and bold.
[pdfView setEditingSelectionFontSize:12.0];
[pdfView setEditingSelectionFontColor:[CPDFKitPlatformColor redColor]];
[pdfView setCurrentSelectionIsBold:YES];
ComPDFKit provides multiple methods to modify image properties. You can modify image properties, such as rotating, cropping, mirroring, and setting transparency.
The following code shows you how to rotate an image and set it to translucent.
[pdfView rotateEditArea:pdfView.editingArea rotateAngle:90];
/**
* Sets text transparency.
*/
[pdfView setCharsFontTransparency:0.5];
/**
* Sets image transparency.
*/
[pdfView setImageTransparencyEditArea:pdfView.editingArea transparency:0.9];
The following code shows you how to crop the image.
[self.pdfView enterCropWithEditImageArea:self.editingArea];