Quote:
Originally Posted by pmattf
Well the good news is that I figured it out. The problem was I was using drawInContext, while renderInContext is the one to use....
Code:
// PDF page drawing expects a Lower-Left coordinate system, so we flip the coordinate system
// before we start drawing.
CGContextTranslateCTM(pdfContext, 0.0, pageRect.size.height);
CGContextScaleCTM(pdfContext, 1.0, -1.0);
// webView is my UIWebView component
[webView.layer renderInContext:pdfContext];
The bad news is that this just produces a screen sized bitmap in the pdf, so not that useful.
|
Hi pmattf,
Did you ever manage to get this to work and save correctly instead of a bitmap in the pdf??
Trying to figure this out aswell.
Cheers!!