2012-02-25 63 views

回答

1

試試這個:

CGPDFDocumentRef document; 
UIGraphicsBeginImageContext(/* PDF_SIZE */); 
CGContextRef context = UIGraphicsGetCurrentContext(); 
CGContextDrawPDFPage(context, CGPDFDocumentGetPage(/* PDF_PAGE */)); 

UIImage *output = UIGraphicsGetImageFromCurrentImageContext(); 

UIGraphicsEndImageContext();