我有一个包含数字签名和其他数据的PDF文件,但当我在UIWebView中显示PDF时,数字签名不可见,尽管其他数据可见。如果有人知道如何使其可见,请告诉我。谢谢。
我有一个包含数字签名和其他数据的PDF文件,但当我在UIWebView中显示PDF时,数字签名不可见,尽管其他数据可见。如果有人知道如何使其可见,请告诉我。谢谢。
webview
中使用?如果想预览PDF,请使用UIDocumentInteractionController
,它易于使用,做法如下: NSURL *URL = [[NSBundle mainBundle] URLForResource:@"sample" withExtension:@"pdf"];
if (URL) {
// Initialize Document Interaction Controller
self.documentInteractionController = [UIDocumentInteractionController interactionControllerWithURL:URL];
// Configure Document Interaction Controller
[self.documentInteractionController setDelegate:self];
// Preview PDF
[self.documentInteractionController presentPreviewAnimated:YES];
}
对于示例教程