如何从asp.net设置pdf文件的密码
问题描述:
在打开pdf文件时,必须询问密码.
当我产生的时候.请告诉我解决方案
while opening pdf file it has to ask password .
when i am generating . please tell me the solution
答
如果您想从c#中打开受密码保护的pdf,则需要做很多事情,例如pdf解析器,生成器,解密器等.
我建议使用pdf库执行此操作.
这样会更简单.
在C#中找到ope源pdf库,
http://csharp-source.net/open-source/pdf-libraries [ ^ ]
欢呼
If you want to open a password protected pdf from c#, you need to do lot of things like pdf parser, generator, decryptor etc.
I would suggest to use a pdf library to do this.
This will be much simpler.
Find the ope source pdf library in c#,
http://csharp-source.net/open-source/pdf-libraries[^]
cheers
请参阅 ^ ]在这里:
使用C#进行密码保护的PDF [在PDF文件中添加密码 [通过c#如何创建受密码保护的pdf文件. [ ^ ]
在运行时在asp.net c#中设置pdf文件密码 [
See the top 4 links of Google[^] here:
Password protected PDF using C#[^]
Add Password in PDF File[^]
through c# how we can create password protected pdf file.[^]
set pdf file password at runtime in asp.net c# [^]
--Amit