Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Tutorials

Reply
 
LinkBack Thread Tools Display Modes
Old 12-12-2009, 09:09 PM   #26 (permalink)
Registered Member
 
Join Date: Dec 2009
Posts: 1
Default

Simulator does not display PDF file. Placed instance code in main.m file.
tjoozey is offline   Reply With Quote
Old 12-14-2009, 12:38 AM   #27 (permalink)
Registered Member
 
Join Date: Dec 2009
Location: Mumbai
Posts: 43
Send a message via MSN to hardikapatel Send a message via Yahoo to hardikapatel Send a message via Skype™ to hardikapatel
Default

Quote:
Originally Posted by rmonson View Post
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.
hardikapatel is offline   Reply With Quote
Old 12-14-2009, 12:44 AM   #28 (permalink)
Registered Member
 
Join Date: Dec 2009
Location: Mumbai
Posts: 43
Send a message via MSN to hardikapatel Send a message via Yahoo to hardikapatel Send a message via Skype™ to hardikapatel
Default how to read the xls file

Quote:
Originally Posted by sukumar_77 View Post
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.
hardikapatel is offline   Reply With Quote
Old 12-14-2009, 03:40 AM   #29 (permalink)
Registered Member
 
Join Date: Dec 2009
Location: Mumbai
Posts: 43
Send a message via MSN to hardikapatel Send a message via Yahoo to hardikapatel Send a message via Skype™ to hardikapatel
Default Need Help

hello
can u also send me the code.
my email is hardikpatel1987.007@gmail.com
hardikapatel is offline   Reply With Quote
Old 12-14-2009, 04:27 AM   #30 (permalink)
Registered Member
 
Join Date: Dec 2009
Location: Mumbai
Posts: 43
Send a message via MSN to hardikapatel Send a message via Yahoo to hardikapatel Send a message via Skype™ to hardikapatel
Default Need Help

Quote:
Originally Posted by danielb21 View Post
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
hardikapatel is offline   Reply With Quote
Old 12-15-2009, 01:11 AM   #31 (permalink)
Registered Member
 
Join Date: Dec 2009
Location: Mumbai
Posts: 43
Send a message via MSN to hardikapatel Send a message via Yahoo to hardikapatel Send a message via Skype™ to hardikapatel
Default

Quote:
Originally Posted by sukumar_77 View Post
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.
hardikapatel is offline   Reply With Quote
Old 12-20-2009, 01:26 AM   #32 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 1
Default

I also want the same code. If you are willing to share with me my mail id is krunal247@gmail.com
krunal247 is offline   Reply With Quote
Old 12-24-2009, 02:24 PM   #33 (permalink)
Registered Member
 
Join Date: Dec 2009
Posts: 26
Default

Awesome tutorial. Thanks. Im going to use this for a ebook type project, greatly appreciated!
iphonedeveloper11 is offline   Reply With Quote
Old 12-27-2009, 08:11 PM   #34 (permalink)
Registered Member
 
Join Date: Dec 2009
Posts: 1
Default

Quote:
Originally Posted by danielb21 View Post
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
wandering is offline   Reply With Quote
Old 12-28-2009, 02:07 AM   #35 (permalink)
Registered Member
 
Join Date: Dec 2009
Posts: 4
Question

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
Msingh is offline   Reply With Quote
Old 12-28-2009, 08:16 AM   #36 (permalink)
limocharlotte
 
limocharlotte's Avatar
 
Join Date: Dec 2009
Location: Carolina
Posts: 1
Send a message via Yahoo to limocharlotte
Default

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?
__________________
Charlotte SEO | Limo Charlotte
limocharlotte is offline   Reply With Quote
Old 12-29-2009, 12:23 AM   #37 (permalink)
Registered Member
 
Join Date: Dec 2009
Posts: 4
Default 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!!!
Msingh is offline   Reply With Quote
Old 01-07-2010, 02:27 AM   #38 (permalink)
Jedi
 
damian_sage's Avatar
 
Join Date: Jan 2010
Location: Bath,UK
Posts: 5
Default

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. ^_^
__________________
Cheers! ^_^

Want some iphone application ideas? I can help. Especially with iphone business apps. Message me. ^_^
damian_sage is offline   Reply With Quote
Old 02-01-2010, 01:26 AM   #39 (permalink)
Registered Member
 
Join Date: Jan 2010
Location: New Delhi
Posts: 5
Default 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.
muzammil is offline   Reply With Quote
Old 02-01-2010, 10:41 AM   #40 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 1
Default Hi

I'd be grateful if anyone could send me the code as well. My email is dmemarian@me.com

Many thanks!
dmemarian is offline   Reply With Quote
Old 02-01-2010, 10:12 PM   #41 (permalink)
Registered Member
 
Join Date: Jan 2010
Posts: 6
Default Source Code Please

My email is : kit@lucidus.com.hk
Please send me the source code.
ikitx is offline   Reply With Quote
Old 02-07-2010, 06:22 AM   #42 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 2
Default 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
Sjakelien is offline   Reply With Quote
Old 02-09-2010, 11:33 AM   #43 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 1
Default Me Too!

Quote:
Originally Posted by danielb21 View Post
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
BustinStones is offline   Reply With Quote
Old 02-10-2010, 11:18 AM   #44 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 3
Default

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
outtoplay is offline   Reply With Quote
Old 02-10-2010, 09:53 PM   #45 (permalink)
Registered Member
 
Join Date: Sep 2008
Posts: 48
Default

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
danielb21 is offline   Reply With Quote
Old 02-12-2010, 04:48 AM   #46 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 4
Default

Quote:
Originally Posted by danielb21 View Post
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


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?
tsfrocks is offline   Reply With Quote
Old 02-12-2010, 12:49 PM   #47 (permalink)
Registered Member
 
Join Date: Feb 2009
Posts: 41
Default

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.
k182 is offline   Reply With Quote
Old 02-23-2010, 02:45 AM   #48 (permalink)
iRJ
Registered Member
 
Join Date: Jan 2010
Posts: 1
Default

Quote:
Originally Posted by tsfrocks View Post
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?
iRJ is offline   Reply With Quote
Old 03-13-2010, 01:20 PM   #49 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 11
Default

Quote:
Originally Posted by iRJ View Post
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.
tsansone is offline   Reply With Quote
Old Today, 12:52 AM   #50 (permalink)
Registered Member
 
Join Date: Mar 2010
Posts: 4
Default

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 View Post
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
jbourne08 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,056
Threads: 38,846
Posts: 170,406
Top Poster: smasher (2,562)
Welcome to our newest member, develsolutions
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:32 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0