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

View Single Post
Old 02-03-2010, 04:18 AM   #50 (permalink)
Divya.Rai
Registered Member
 
Join Date: Sep 2009
Posts: 1
Divya.Rai is on a distinguished road
Default Thanks for making the tutorial

Thanks for making the tutorial...can you please help in writing a sample code presenting zoom-able single pages with a previous-next page function.

Thanks in advance

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.
Divya.Rai is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,443
Threads: 94,031
Posts: 402,603
Top Poster: BrianSlick (7,978)
Welcome to our newest member, Joseph262
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:40 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.