It looks like you're new here. If you want to get involved, click one of these buttons!
rmonson wrote: »
This works well but you have to remove the dot (".") from the file type or it doesn't work. so the "ofType" parameter should be as follows:
Notice the dot is missing.
sukumar_77 wrote: »
Thanks Daniel for your great work.
The same approach may be useful to read Microsoft Office Documents i.e. Word, Excel and PPT, if required.
danielb21 wrote: »
I've been extremely busy and haven't been able to reply till just now. I'm creating a simple project for this right now and will send to all that have PM'ed me.
// Save data if appropriate
// Create an instance of PDFViewController
PDFViewController *controller = [[PDFViewController alloc] initWithNibName:@PDFView bundle:nil];
// Get the path to our documents directory
NSArray *documentPath = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
// This should be our documents directory
NSString *saveDirectory = [documentPath objectAtIndex:0];
// Our PDF is named 'Example.pdf'
NSString *saveFileName = @Example.pdf;
// Create the full path using our saveDirectory and saveFileName
NSString *finalPath = [saveDirectory stringByAppendingPathComponent:saveFileName];
// Set the pdfUrl to our finalPath
controller.pdfUrl = [NSURL fileURLWithPath:finalPath];
// Push 'controller'
[self.navigationController pushViewController:controller animated:YES];
// Release 'controller'
danielb21 wrote: »
I've posted the project on github now because I can't keep up with all of the requests.
You can find it here:
danberry's PDF-Viewer at master - GitHub
tsfrocks wrote: »
I have a WebView that displays a local pdf file. The file is 230 pages long and loads fine etc. I need a way for the user to jump to a specific page if I can. For instance if they look at the table of contents of the pdf and they want to jump to page 120, they can do it? Any ideas on getting this done?
iRJ wrote: »
I am also looking to implement this, have you found a way to do this yet? Or does anyone else know?