Hi Daniel
I know this is a late addition to your original post but I'm in desperate need of some help with the iPhone PDF stuff. I'm looking for the correct way to use a couple of CGPDF functions namely:
CGPDFDocumentGetPage and CGPDFPageGetPageNumber
I am trying to set up a bookmark for a locally loaded pdf document with multiple pages.
I am trying to load the bookmarked page like so:
Code:
if (iPhotoOg == 0) {
pdfUrl = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"Stave1" ofType:@"pdf"]];
pdfUrl = CGPDFDocumentGetPage(pdfUrl, pageNumber);
}
[webView loadRequest:[NSURLRequest requestWithURL:pdfUrl]];
and trying to bookmark the page like so:
Code:
else if (iPhotoOg == 1){
chap = 2;
pageNumber = CGPDFPageGetPageNumber(pageNumber);
}
In the first instance I just get a blank screen in tehs econd instance I get incompatibility warnings.
Any help would be greatly appreciated.