I am looking for a way to programmatically (in obj-c) generate a PDF file from a local html file. I dynamically generate html from user inputs, I need to create a PDF file and send it to the user (via email). I'm having difficulty with the PDF creation part.
I have code to create a PDF using CGPDFContextCreateWithURL, but I'm struggling with drawing a page using quartz.
I searched a lot on SO, as well as on the Internet, but to no avail.
Any help is much appreciated!
source
share