Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

larswik

macrumors 68000
Original poster
Sep 8, 2006
1,552
11
For my app I am to the point of the user creating an invoice to email to the client. I thought this would be a good weekend project to learn about making PDFs.

I did some research online and there seems to be different ways of approaching it. I looked at the PDFKit but then read some people saying it is unreliable, pain to use and stay away from it.

Then I found the Apple site http://developer.apple.com/library/...gPrintingiOS/GeneratingPDF/GeneratingPDF.html

I was wondering if this is the best approach to learn how to create PDF files to email from the ios, or is there something that some one could recommend that I have not seen yet, or different approach if PDFs are not the solution? I would like to focus my weekend on the right path.

Thanks
 
Creating a PDF can be just like drawing to the screen. The code just draws into a PDFContext instead. That's what the page you link to shows. That should work just fine. Something like an invoice would be mostly text with maybe a few lines. That should be simple to do and should work out fine.

PDFs are a widely used format and would be a good format for non-editable documents.
 
Thanks for the feedback. There have been a few time where I started on the wrong path and wasted a weekend learning the wrong thing, so I thought I would ask first.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.