Cocoa-Created PDF Not Rendering Correctly
- by Matthew Roberts
I've created a PDF on the iPad, but the problem is when you have a line of text greater than 1 line, the content just goes off the page. This is my code:
void CreatePDFFile (CGRect pageRect, const char *filename) {
CGContextRef pdfContext;
CFStringRef path;
CFURLRef url;
CFMutableDictionaryRef myDictionary = NULL;
path =…