Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 09-28-2009, 02:35 PM   #33 (permalink)
Sicga
Registered Member
 
Join Date: May 2009
Posts: 133
Sicga is on a distinguished road
Default

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.
Sicga is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,281
Threads: 93,958
Posts: 402,310
Top Poster: BrianSlick (7,971)
Welcome to our newest member, SDP
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:33 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.