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:
ofType:@"pdf"
Notice the dot is missing.
Hello
I m also trying the same thing.But I instead of pdf file I am using xls file.but I am not able to display the content of the file.Do I have to make those changes in the interface builder.I am using the following code.
The same approach may be useful to read Microsoft Office Documents i.e. Word, Excel and PPT, if required.
Hello
Can YOU please guide me how to read the xls file in my iphone application.
I tired the given above but I cant read the xls file and I am using this xls file as a RESOURCE.If possible for you can you give me steps to do the same.
If you have a sample code then can u please mail it to me at hardikpatel1987.007@gmail.com.
Thanks in advance.
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.
Thanks!
Dan
Sir please forward me the sample code of reading a PDF file in an iphone application.If possible also guide me how to read a xls file in an iphone application.
thank you
It is giving an error call bad execution.Can you tell me what mistake I am making.If you have a sample code then please give it to me or mail me at hardikpatel1987.007@gmail.com
Last edited by hardikapatel; 12-15-2009 at 02:13 AM.
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.
Ok, so, I finally got that sorted out, but I think there's something wrong with this code
Code:
// 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'
[controller release];
the application gets an error, I think I'm putting it in the right spot, AppDelegate, under applicationDidFinishLaunching..... Please Help, I'm really stuck here, you could even just send a working project of this so I can figure out myself. PLEASE HELP ME!!
(email is akaldifauj@gmail.com)
Thanks in advance,
Msingh
Last edited by Msingh; 12-28-2009 at 10:28 PM.
Reason: New problem
Please help me. Can anybody just send me the finished product? Email is akaldifauj@gmail.com PLEASE HELP I don't want to have to pay $100 again next year PLEASE!!!
Hey cool man. I was lookin to make my own pdf viewer a few months ago, but my motivation kinda fizzled out... But this tutorial looks like a good place to start.
Thanks. ^_^
Hi,
Can anyone send me the code.....
I am also looking for how to edit pdf files by using objectice C in XCode.
If anyone have idea regarding this, Plz share.
my mail id is muz.aazmi@gmail.com
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.
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?
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?
I am also looking to implement this, have you found a way to do this yet? Or does anyone else know?
I am also looking to implement this, have you found a way to do this yet? Or does anyone else know?
Hi,
This a great tutorial thanks. I am a beginner and had to download the finished project, but I did and it works.
Now I need to find a way to add this to my own existing application. Does anyone know how I would set this up where if I click on a button it would then load the PDF?
Hi Dan
I m trying to use the pdf viewer with web service. I want to use the pdf url returned by the webservice. Any suggestions how should i go about it
thanks
Quote:
Originally Posted by danielb21
Hey everyone,
I've posted the project on github now because I can't keep up with all of the requests.