UIWebview中的Pdf文件,带密码 [英] Pdf file in UIWebview with password

查看:96
本文介绍了UIWebview中的Pdf文件,带密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的请求中指定PDF文件的密码。这可能吗?
目前我的代码如下:

I would like to specify the password of a PDF file in my request. Is this possible? Currently my code is as following:

NSString *nomPdf=_pdffile.name;

NSString *path = [[NSBundle mainBundle] pathForResource:nomPdf ofType:@"pdf"];
NSURL *url;
NSURLRequest *request;
if(path !=nil){
    url = [NSURL fileURLWithPath:path];
    request = [NSURLRequest requestWithURL:url];
}

如何在此代码中传递PDF文件所需的密码字符串?

How can I pass the password string required of the PDF file in this code ?

推荐答案

不是完全答案,但为了排除选项,它听起来像你不能将密码嵌入到URL中。

Not fully an answer, but to rule out options, it sounds like you can't embed the password as part of a URL.

这篇关于UIWebview中的Pdf文件,带密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆