 |
|
 |
|
 |
12-12-2009, 09:09 PM
|
#26 (permalink)
|
|
Registered Member
Join Date: Dec 2009
Posts: 1
|
Simulator does not display PDF file. Placed instance code in main.m file.
|
|
|
12-14-2009, 12:38 AM
|
#27 (permalink)
|
|
Registered Member
Join Date: Dec 2009
Location: Mumbai
Posts: 43
|
Quote:
Originally Posted by rmonson
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.
NSString *myFilePath = [[NSBundle mainBundle]pathForResource:@"help" ofType:@"xls"];
NSURL *xlsUrl = [NSURL URLWithString:myFilePath];
and I am using xls file as a resource.
|
|
|
12-14-2009, 12:44 AM
|
#28 (permalink)
|
|
Registered Member
Join Date: Dec 2009
Location: Mumbai
Posts: 43
|
how to read the xls file
Quote:
Originally Posted by sukumar_77
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.
|
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.
|
|
|
12-14-2009, 04:27 AM
|
#30 (permalink)
|
|
Registered Member
Join Date: Dec 2009
Location: Mumbai
Posts: 43
|
Need Help
Quote:
Originally Posted by danielb21
Hey everyone,
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
|
|
|
12-15-2009, 01:11 AM
|
#31 (permalink)
|
|
Registered Member
Join Date: Dec 2009
Location: Mumbai
Posts: 43
|
Quote:
Originally Posted by sukumar_77
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.
|
Hello..
I cant view the pdf file.
I have used the same code which was give by you.i.e
NSString *pdfPath = [[NSBundle mainBundle] pathForResource:@"MyFilePDF" ofType:@"pdf"];
NSURL *pdfUrl = [NSURL URLWithString : pdfPath];
I am using MyFilePDF as a resource file.
I want to use excel file in my iphone application can u guide me please
I have used the following code..
NSString *xlsPath = [[NSBundle mainBundle] pathForResource:@"MyFileXls" ofType:@"xls"];
NSURL *xlsUrl = [NSURL URLWithString:xlsPath];
I am using MyFileXls as a Resource.
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 01:13 AM.
|
|
|
12-20-2009, 01:26 AM
|
#32 (permalink)
|
|
Registered Member
Join Date: Jun 2009
Posts: 1
|
I also want the same code. If you are willing to share with me my mail id is krunal247@gmail.com
|
|
|
12-24-2009, 02:24 PM
|
#33 (permalink)
|
|
Registered Member
Join Date: Dec 2009
Posts: 26
|
Awesome tutorial. Thanks. Im going to use this for a ebook type project, greatly appreciated!
|
|
|
12-27-2009, 08:11 PM
|
#34 (permalink)
|
|
Registered Member
Join Date: Dec 2009
Posts: 1
|
Quote:
Originally Posted by danielb21
Hey everyone,
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
|
Hi there, can you send me a copy please?
wanderingz328@yahoo.co.nz
Thanks
|
|
|
12-28-2009, 02:07 AM
|
#35 (permalink)
|
|
Registered Member
Join Date: Dec 2009
Posts: 4
|
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 09:28 PM.
Reason: New problem
|
|
|
12-28-2009, 08:16 AM
|
#36 (permalink)
|
|
limocharlotte
Join Date: Dec 2009
Location: Carolina
Posts: 1
|
Hi... it looks good while open pdf docs but what if i want to open excel or word documents? any code or suggestions for this?
|
|
|
12-29-2009, 12:23 AM
|
#37 (permalink)
|
|
Registered Member
Join Date: Dec 2009
Posts: 4
|
Pl
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!!!
|
|
|
01-07-2010, 02:27 AM
|
#38 (permalink)
|
|
Jedi
Join Date: Jan 2010
Location: Bath,UK
Posts: 5
|
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. ^_^
|
|
|
02-01-2010, 01:26 AM
|
#39 (permalink)
|
|
Registered Member
Join Date: Jan 2010
Location: New Delhi
Posts: 5
|
I also need it
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
Thanx in advance.
|
|
|
02-01-2010, 10:41 AM
|
#40 (permalink)
|
|
Registered Member
Join Date: Feb 2010
Posts: 1
|
Hi
I'd be grateful if anyone could send me the code as well. My email is dmemarian@me.com
Many thanks!
|
|
|
02-01-2010, 10:12 PM
|
#41 (permalink)
|
|
Registered Member
Join Date: Jan 2010
Posts: 6
|
Source Code Please
My email is : kit@lucidus.com.hk
Please send me the source code.
|
|
|
02-07-2010, 06:22 AM
|
#42 (permalink)
|
|
Registered Member
Join Date: May 2009
Posts: 2
|
Me too!
I would very much appreciate to receive a copy of the full project, too!
My email address is sjakelien@yahoo.com
Thanks
Sjakelien
|
|
|
02-09-2010, 11:33 AM
|
#43 (permalink)
|
|
Registered Member
Join Date: Feb 2010
Posts: 1
|
Me Too!
Quote:
Originally Posted by danielb21
Hey everyone,
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
|
Would love to get a copy of this project as well. jb7404@bellsouth.net
Regards
|
|
|
02-10-2010, 11:18 AM
|
#44 (permalink)
|
|
Registered Member
Join Date: Feb 2010
Posts: 3
|
Hi All,
Wow...just stumbled across this! Would really appreciate if someone could take a moment and email me Daniel's example project... outtoplay@gmail.com
This would be terrific... What a great community here!
Brendang
|
|
|
02-10-2010, 09:53 PM
|
#45 (permalink)
|
|
Registered Member
Join Date: Sep 2008
Posts: 48
|
Hey everyone,
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
Thanks!
Dan
|
|
|
02-12-2010, 04:48 AM
|
#46 (permalink)
|
|
Registered Member
Join Date: Feb 2010
Posts: 4
|
Quote:
Originally Posted by danielb21
|
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?
|
|
|
02-12-2010, 12:49 PM
|
#47 (permalink)
|
|
Registered Member
Join Date: Feb 2009
Posts: 41
|
hey
thanks for the source code, I going to have a look at it.
Last edited by k182; 02-12-2010 at 12:52 PM.
|
|
|
02-23-2010, 02:45 AM
|
#48 (permalink)
|
|
Registered Member
Join Date: Jan 2010
Posts: 1
|
Quote:
Originally Posted by tsfrocks
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?
|
|
|
03-13-2010, 01:20 PM
|
#49 (permalink)
|
|
Registered Member
Join Date: Feb 2010
Posts: 11
|
Quote:
Originally Posted by iRJ
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?
Any help would be appreciated.
|
|
|
Today, 12:52 AM
|
#50 (permalink)
|
|
Registered Member
Join Date: Mar 2010
Posts: 4
|
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
|
|
|
|
 |
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
» Advertisements |
» Online Users: 321 |
| 27 members and 294 guests |
| abiz, aceallways, Blitfast, brianmethod, develsolutions, dre, Duncan C, Eagle11, entity2light, FetaBoy, firearasi, Gambit, gc2010, harkonian, JonnyBGoode, JoshuaCaputo, lepetitapps, level4, Mizonnz, pablo_ivan57, pacoo2454, rahulskh, shawnsf, smasher, toddo35, TunaNugget |
| Most users ever online was 779, 05-11-2009 at 09:55 AM. |
» Stats |
Members: 24,056
Threads: 38,846
Posts: 170,406
Top Poster: smasher (2,562)
|
| Welcome to our newest member, develsolutions |
|