Open a Document
Open a Local File
// Get the path of a PDF
NSString *pdfPath = @"...";
// Initialize a CPDFDocument object with the path to the PDF file
NSURL *url = [NSURL fileURLWithPath:pdfPath];
CPDFDocument *document = [[[CPDFDocument alloc] initWithURL:url]
autorelease];
if (document.error && document.error.code != CPDFDocumentPasswordError) {
return;
}
Create a New File
CPDFDocument *document = [[[CPDFDocument alloc] init] autorelease];