I have an iPad app and I\'m trying to generate a PDF from a UIView and it\'s almost working perfectly.
The code is really simple as follows:
Trying using the view's viewPrintFormatter.
Instead of [view.layer renderInContext:pdfContext];
[view.layer renderInContext:pdfContext];
try this
CALayer* formattedLayer = [view viewPrintFormatter].view.layer; [formattedLayer renderInContext:pdfContext];