I have an app with Core Data and I would like to transfer its contents to a PDF file so the end user can print it and mail it.
-
What steps do I need to take? Like do I need to convert or can it be converted directly?
-
I would like to set the layout of the PDF file so I am not sure if that affects question 1.
Outputting to PDF isn’t particularly tricky – in general it’s no harder than composing a traditional view.
UIKit provides a high-level API, documented here.
An alternate approach is to render to a CoreGraphics PDF context. You can also search for various implementations of this.