Reputation:
I need a way of creating a table of data in landscape mode. This table should be in PDF form, is this possible on iPhone? If so please can someone advise on how to do it? If not, what are my other options?
Upvotes: 0
Views: 2032
Reputation: 1965
create your table in UIWebView and then follow this link to make pdf from UIWebView
http://coderchrismills.wordpress.com/2011/06/25/making-a-pdf-from-a-uiwebview/
Upvotes: 1
Reputation:
I believe following link would definitely help you to create table using drawLine
method in a loop. You can simply modify the drawLine
method and implement to draw table for you. Also the code is very Handy to use with a very customizable methods for PDF creation.
http://www.ioslearner.com/generate-pdf-programmatically-iphoneipad/
For more help you can refer previous post.
Upvotes: 2
Reputation: 80265
Easiest is using HTML. You can do all the text processing in objective-C and display the table in a simple UIWebView
. This also gives you great control over how it is going to look.
Upvotes: 0