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 > iPhone SDK Development Forums > iPhone SDK Tutorials

Reply
 
LinkBack Thread Tools Display Modes
Old 04-06-2011, 02:56 AM   #101 (permalink)
Imran khan
 
Join Date: Mar 2011
Location: India
Posts: 1
immukmd is on a distinguished road
Default

Quote:
Originally Posted by danielb21 View Post
Good afternoon everyone!

I have written an intro to PDF tutorial for those that are interested in PDF interactivity within your iPhone apps. This first tutorial, shows how to simply create a PDF that contains an image, some text and a border around the page.

Ok, on to the goods! There are two custom methods in the PDFViewController.m file that you will be looking at mostly. The first is CreatePDFFile. This method does exactly what it says - creates a PDF file. The second method is called createPDF, and is an IBAction method hooked to an UIButton in IB. Upon touching the button this method calls our CreatePDFFile method.

Important - there is no output after clicking the button, meaning you will not see the resulting PDF displayed on the phone. I can create a second tutorial for that purpose, but it seemed like most people were only interested in the creation of the file.

In order to view the resulting PDF go to:
Users/YourUserName/Library/Application Support/iPhone Simulator/User/Applications

In this directory sort by Date Modified. If the example project here was the last app that you ran it will be at the top of this directory. Simply navigate to the documents directory of the PDF example app and you will be able to see the PDF it creates.

Let me know if you have any questions!

P.S. So it seems that the example project was larger than the allowed size for attachments. I will get the whole project up on the web for download soon, but in the meantime I have included the class files which is all you should need.
nice tutorial.....
immukmd is offline   Reply With Quote
Old 04-13-2011, 01:00 AM   #102 (permalink)
Registered Member
 
Join Date: Apr 2011
Posts: 3
SohaibQazi is on a distinguished road
Default Needs Help

The files you attached are not working for me for block of Image creation. In image creation block , my application is crashing on this point

pictureURL = CFBundleCopyResourceURL(CFBundleGetMainBundle(), picturePath, CFSTR("png"), NULL);

I am new to iPhone development, so kindly explain it to me. I didnt change anything in your code. But when i commit block of image. Pdf file is generating in the folder you told with "Hello World"...... But for that in console i am getting error
CreatePDFFile[1011] : FT_Load_Glyph failed: error 6.

How can i fix these issues? Any ideas...... Would be greatly thankful to you
SohaibQazi is offline   Reply With Quote
Old 04-26-2011, 09:17 PM   #103 (permalink)
Registered Member
 
Join Date: Aug 2008
Posts: 175
RockStrongo is on a distinguished road
Default

Anyone know how to make a URL when creating a PDF?

Right now, I have the text for my web address on the bottom of the document, but I would like to make it a hyperlink if possible.

Anyone have any suggestions?
RockStrongo is offline   Reply With Quote
Old 05-29-2011, 07:43 PM   #104 (permalink)
Registered Member
 
Join Date: May 2011
Posts: 2
ArtieFufkin10 is on a distinguished road
Default

Great tutorial. I'm having some issues with the Simulator crashing after I press the "make pdf" button. It is indeed writing the file, but apparently its empty and I can't open it.

If you can share the tutorial with me, it would be much appreciated.

rm443@drexel.edu

Thanks!
ArtieFufkin10 is offline   Reply With Quote
Old 05-29-2011, 07:50 PM   #105 (permalink)
Registered Member
 
Join Date: May 2011
Posts: 2
ArtieFufkin10 is on a distinguished road
Default

Quote:
Originally Posted by ArtieFufkin10 View Post
Great tutorial. I'm having some issues with the Simulator crashing after I press the "make pdf" button. It is indeed writing the file, but apparently its empty and I can't open it.

If you can share the tutorial with me, it would be much appreciated.

rm443@drexel.edu

Thanks!
Scratch the above message, I seem to have it working. Does anyone know how to use Mail to email the file on the iPhone?
ArtieFufkin10 is offline   Reply With Quote
Old 06-05-2011, 06:51 PM   #106 (permalink)
Registered Member
 
Join Date: Jun 2011
Posts: 1
EnderTheXenocide is on a distinguished road
Default Links?

Quote:
Originally Posted by danielb21 View Post
Good afternoon everyone!

I have written an intro to PDF tutorial for those that are interested in PDF interactivity within your iPhone apps. This first tutorial, shows how to simply create a PDF that contains an image, some text and a border around the page.

Ok, on to the goods! There are two custom methods in the PDFViewController.m file that you will be looking at mostly. The first is CreatePDFFile. This method does exactly what it says - creates a PDF file. The second method is called createPDF, and is an IBAction method hooked to an UIButton in IB. Upon touching the button this method calls our CreatePDFFile method.

Important - there is no output after clicking the button, meaning you will not see the resulting PDF displayed on the phone. I can create a second tutorial for that purpose, but it seemed like most people were only interested in the creation of the file.

In order to view the resulting PDF go to:
Users/YourUserName/Library/Application Support/iPhone Simulator/User/Applications

In this directory sort by Date Modified. If the example project here was the last app that you ran it will be at the top of this directory. Simply navigate to the documents directory of the PDF example app and you will be able to see the PDF it creates.

Let me know if you have any questions!

P.S. So it seems that the example project was larger than the allowed size for attachments. I will get the whole project up on the web for download soon, but in the meantime I have included the class files which is all you should need.

So I have just a simple quick question.
Is there a website for intro to Xcode4?
Preferably a simplified version of the tutorial would be awesome.
I'm new to the mac and the whole concept of developing.
And i would like a very simple and efficient way to learn.
I am no developer or anything.
Just a complete noob interested in finding a new hobby in creating apps.
Please reply back if possible.
EnderTheXenocide is offline   Reply With Quote
Old 06-11-2011, 07:29 AM   #107 (permalink)
Registered Member
 
Join Date: Jun 2011
Posts: 20
shas is on a distinguished road
Default Saving Downloaded PDF from UIWebView

I loaded one webpage on UIWebview and from there i clicked to download one pdf file, then PDF file opened in UIWebview

I want to save this Opened PDF files into my iPad Also Later i want Browse these files and open again
shas is offline   Reply With Quote
Old 06-13-2011, 05:58 AM   #108 (permalink)
Registered Member
 
Join Date: Jun 2011
Posts: 1
bhushangahire is on a distinguished road
Default

Quote:
Originally Posted by shas View Post
I loaded one webpage on UIWebview and from there i clicked to download one pdf file, then PDF file opened in UIWebview

I want to save this Opened PDF files into my iPad Also Later i want Browse these files and open again
Can anyone send me the full project I will upload to me hosting and share a link for whole project for download.

Send it to me at : bhushangahire2007@gmail.com
bhushangahire is offline   Reply With Quote
Old 06-20-2011, 08:47 AM   #109 (permalink)
Registered Member
 
Join Date: Oct 2010
Posts: 5
danderton is on a distinguished road
Default

Quote:
Originally Posted by bhushangahire View Post
Can anyone send me the full project I will upload to me hosting and share a link for whole project for download.

Send it to me at : bhushangahire2007@gmail.com
Did you ever get this? I would be very grateful for a copy.

Thanks Dan
danderton is offline   Reply With Quote
Old 06-20-2011, 01:23 PM   #110 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 129
uvidownloader is on a distinguished road
Default

Is this the most simplest way to show a PDF document in an app ? I am creating a tutorial app that I want to just add different PDF files to different views. There should be a simplier solution than this. If I am wrong please PM Me.
uvidownloader is offline   Reply With Quote
Old 07-28-2011, 02:20 AM   #111 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 3
janani is on a distinguished road
Wink

hi im creating a project to display the reports of a patient. i need to create a pdf for tat. form ur post i undr ur tutorial is really gud. i would like to use urs. but in tat zip only the files are there, can u mail me the whole project. and can u tel me how to edit the pdf and highlight the text???

mail me the project to beware.crab@gmail.com

thanks in advance..
janani is offline   Reply With Quote
Old 08-17-2011, 06:25 PM   #112 (permalink)
Registered Member
 
Join Date: Aug 2011
Posts: 1
yamaturkey is on a distinguished road
Default

Quote:
Originally Posted by danielb21 View Post
Good afternoon everyone!

I have written an intro to PDF tutorial for those that are interested in PDF interactivity within your iPhone apps. This first tutorial, shows how to simply create a PDF that contains an image, some text and a border around the page.

Ok, on to the goods! There are two custom methods in the PDFViewController.m file that you will be looking at mostly. The first is CreatePDFFile. This method does exactly what it says - creates a PDF file. The second method is called createPDF, and is an IBAction method hooked to an UIButton in IB. Upon touching the button this method calls our CreatePDFFile method.

Important - there is no output after clicking the button, meaning you will not see the resulting PDF displayed on the phone. I can create a second tutorial for that purpose, but it seemed like most people were only interested in the creation of the file.

In order to view the resulting PDF go to:
Users/YourUserName/Library/Application Support/iPhone Simulator/User/Applications

In this directory sort by Date Modified. If the example project here was the last app that you ran it will be at the top of this directory. Simply navigate to the documents directory of the PDF example app and you will be able to see the PDF it creates.

Let me know if you have any questions!

P.S. So it seems that the example project was larger than the allowed size for attachments. I will get the whole project up on the web for download soon, but in the meantime I have included the class files which is all you should need.
Thanks for the tutorial.
I am new to xcode program, could you tell me how to send up the directory so that i can use the file you provided???
thanks
yamaturkey is offline   Reply With Quote
Old 09-12-2011, 12:07 AM   #113 (permalink)
Registered Member
 
Join Date: Sep 2011
Posts: 6
Mr.Hoo214 is on a distinguished road
Default Help me

Anyone got this solution work , please help me import this code to my app. I just download all code, import in my application, but when i run it , it show me theard 1 : Program received signal: "SIGABRT" . I don't know how to fix it. Please help me
Mr.Hoo214 is offline   Reply With Quote
Old 09-13-2011, 07:59 AM   #114 (permalink)
Registered Member
 
Join Date: May 2011
Location: India
Posts: 1
chetan12386 is on a distinguished road
Default Hello Daniel

Can u plz mail me that tutorial on chetan12386@gmail.com

Thanx in advance ...
chetan12386 is offline   Reply With Quote
Old 09-16-2011, 03:39 AM   #115 (permalink)
Registered Member
 
Join Date: Sep 2011
Posts: 1
zimonl is on a distinguished road
Default

I would thank you very much, if you could send me the tutorial to: lukas.zimon@bitburger-braugruppe.de .

Thanks !
zimonl is offline   Reply With Quote
Old 09-19-2011, 02:34 AM   #116 (permalink)
Registered Member
 
Join Date: Sep 2011
Posts: 6
Mr.Hoo214 is on a distinguished road
Default

Quote:
Originally Posted by Mr.Hoo214 View Post
Anyone got this solution work , please help me import this code to my app. I just download all code, import in my application, but when i run it , it show me theard 1 : Program received signal: "SIGABRT" . I don't know how to fix it. Please help me
Finally i can fix this problem and run this code very well. Thank danielb21 so much !!!

Last edited by Mr.Hoo214; 09-19-2011 at 02:45 AM.
Mr.Hoo214 is offline   Reply With Quote
Old 09-23-2011, 08:34 AM   #117 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 32
medwrite is on a distinguished road
Default Can I convert RTF file to PDF file??

Quote:
Originally Posted by danielb21 View Post
Good afternoon everyone!

I have written an intro to PDF tutorial for those that are interested in PDF interactivity within your iPhone apps. This first tutorial, shows how to simply create a PDF that contains an image, some text and a border around the page.

Ok, on to the goods! There are two custom methods in the PDFViewController.m file that you will be looking at mostly. The first is CreatePDFFile. This method does exactly what it says - creates a PDF file. The second method is called createPDF, and is an IBAction method hooked to an UIButton in IB. Upon touching the button this method calls our CreatePDFFile method.

Important - there is no output after clicking the button, meaning you will not see the resulting PDF displayed on the phone. I can create a second tutorial for that purpose, but it seemed like most people were only interested in the creation of the file.

In order to view the resulting PDF go to:
Users/YourUserName/Library/Application Support/iPhone Simulator/User/Applications

In this directory sort by Date Modified. If the example project here was the last app that you ran it will be at the top of this directory. Simply navigate to the documents directory of the PDF example app and you will be able to see the PDF it creates.

Let me know if you have any questions!

P.S. So it seems that the example project was larger than the allowed size for attachments. I will get the whole project up on the web for download soon, but in the meantime I have included the class files which is all you should need.
Hi,
Can i convert RTF to PDF is it possible.

Thankyou,
Medwrite.
medwrite is offline   Reply With Quote
Old 10-10-2011, 04:37 AM   #118 (permalink)
Registered Member
 
Join Date: Oct 2011
Posts: 1
mingmar is on a distinguished road
Default

Quote:
Originally Posted by Mr.Hoo214 View Post
Finally i can fix this problem and run this code very well. Thank danielb21 so much !!!
So what was the fix for the issue?
I am also facing the same issue.

Thanks
mingmar is offline   Reply With Quote
Old 10-27-2011, 01:53 AM   #119 (permalink)
Registered Member
 
Join Date: Sep 2011
Posts: 6
Mr.Hoo214 is on a distinguished road
Default

Quote:
Originally Posted by mingmar View Post
So what was the fix for the issue?
I am also facing the same issue.

Thanks
It was a month ago , so i can't remember how can i fix this problem. Therefore i decide to create an example with this code to show other member how to create pdf file in their application. In addition, i embed some code to show the pdf file after creating. Hope this will helpful for some people
Attached Files
File Type: zip iPhonePDF.zip (47.3 KB, 184 views)
Mr.Hoo214 is offline   Reply With Quote
Old 12-08-2011, 04:52 AM   #120 (permalink)
New User
 
Join Date: Nov 2010
Posts: 2
santanu is on a distinguished road
Default

really its tutorial very gooddddddd
santanu is offline   Reply With Quote
Old 12-12-2011, 02:33 AM   #121 (permalink)
Registered Member
 
Join Date: Dec 2011
Posts: 1
praveen0074u is on a distinguished road
Default pdf creation help

this class works perfectly..but when i click on the create pdf button again (ie second time) the program gets crashed ..can u help me ?
praveen0074u is offline   Reply With Quote
Old 12-30-2011, 07:13 AM   #122 (permalink)
Registered Member
 
Join Date: Dec 2011
Posts: 1
SalehSultan is on a distinguished road
Default

Quote:
Originally Posted by chetan12386 View Post
Can u plz mail me that tutorial on chetan12386@gmail.com

Thanx in advance ...

Do you have this tutorial ?
Can you please send me the code in my email.
kawsar_cse539@yahoo.com
SalehSultan is offline   Reply With Quote
Old 01-06-2012, 06:48 PM   #123 (permalink)
Bringing fun to you
 
davidlxk's Avatar
 
Join Date: Dec 2011
Posts: 43
davidlxk is on a distinguished road
Default

check this tutorial out How To Create a PDF with Quartz 2D in iOS 5 Tutorial Part 1 | Ray Wenderlich
__________________
Drop Dem is out now! You should check it out at http://itunes.apple.com/us/app/drop-dem/id490101113

You should follow Drop Dem on Twitter http://twitter.com/dropdemgame
or find us on Facebook http://www.facebook.com/pages/Drop-Dem/314923981881703
davidlxk is offline   Reply With Quote
Old 03-30-2012, 03:49 AM   #124 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 22
Sreelash is on a distinguished road
Default Converting PDF to XLS and viceversa in iOS

Hi,

Can anybody help me to convert pdf to xls and xls to pdf.

regards,
Sree
Sreelash 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



» Advertisements
» Online Users: 471
18 members and 453 guests
7twenty7, alexeir, David-T, Dj_kades, Elad, foslock, HemiMG, iAppDeveloper, jeroenkeij, LunarMoon, Mijator, Pauluz85, pipposanta, QuantumDoja, robsmy, sacha1996, smithdale87, usernametaken
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,679
Threads: 94,129
Posts: 402,928
Top Poster: BrianSlick (7,990)
Welcome to our newest member, xzoonxoom
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:21 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0