UIGraphicsBeginPDFContextToFile(fileName, CGRectZero, nil);
UIGraphicsBeginPDFPageWithInfo(CGRectMake(0, 0, 612, 792), nil);
[self drawText];
UIGraphicsEndPDFContext();
fileName is the document file where You are going to append or attach
NSString* temporaryFile = @"firstI...