PDF Editing
PDF editing provides the ability to change content so that its data can be improved or re-purposed.
- Edit text.
- Remove specific content from existing pages.
- Insert or append new content to existing pages.
Initialize PDF Editing
The following code demonstrates how to do PDF editing initialization.
NSURL *url = [NSURL fileURLWithPath:pdfPath];
CPDFDocument *document = [[[CPDFDocument alloc] initWithURL:url] autorelease];
CPDFView *pdfView = [[[CPDFView alloc] initWithFrame:self.view.bounds] autorelease];
// Set the document to display
pdfView.document = document;
// Begin editing text.
[viewer beginEditingLoadType:CEditingLoadTypeText]