Create PDF from CSV on iPhone -
an iphone app creating generates reports core data database csv file, can emailed user may use data elsewhere outside of app. offer ability generate same reports pdf file (of course, nicer formatting) allowing user print report rather having jump through several hoops csv file - i.e. open in application (e.g. excel, numbers) reformat columns (so wide enough printing), bold headings, etc.
essentially, want provide pdf file user given nicely formatted report, , need export csv file if wish data manipulation , need format editable.
i thinking easiest method taking csv file , converting pdf file, same csv except incorporate nicer formatting (such tabular layout) rather simple comma-separated format of csv file. have been unable find ready-made classes purpose (to avoid reinventing wheel) , unsure how approach since have limited experience aspect of sdk. suggestions or pointers in right direction appreciated.
you have 2 different problems:
- read csv data structure in memory
- turn structure in memory pdf
aaron saunders has posted links step 2, here's link step 1:
http://github.com/davedelong/chcsvparser
that's csv parser wrote turn csv file nsarray
of nsarrays
of nsstrings
.
Comments
Post a Comment