gpt4 book ai didi

ios - UIWebView 中的 PDF 不显示数字签名

转载 作者:塔克拉玛干 更新时间:2023-11-02 07:56:38 25 4
gpt4 key购买 nike

我有一个包含数字签名和其他数据的 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];
}

sample tutorial

关于ios - UIWebView 中的 PDF 不显示数字签名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35147135/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com