It looks like you're new here. If you want to get involved, click one of these buttons!
ArtieFufkin10 wrote: »
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.
danielb21 wrote: »
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.
shas wrote: »
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
bhushangahire wrote: »
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 : email@example.com
Mr.Hoo214 wrote: »
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 wrote: »
Finally i can fix this problem and run this code very well. Thank danielb21 so much !!!
mingmar wrote: »
So what was the fix for the issue?
I am also facing the same issue.
chetan12386 wrote: »
Can u plz mail me that tutorial on firstname.lastname@example.org
Thanx in advance ...