使用PDFsharp打开AES 128位加密文件 [英] Using PDFsharp to open AES 128-bit encrypted files
本文介绍了使用PDFsharp打开AES 128位加密文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在接收使用PDFsharp库处理的pdf文件.这些文件经过128位RC4加密.现在,我得到的是128位AES加密的文件.
I've been receiving pdf files that I have been processing with the PDFsharp libraries. These files where 128-bit RC4 encrypted. Now I getting files that are 128-bit AES encyption.
我遇到此异常"PDF文档受PDFsharp不支持的加密保护."
I'm getting this exception "The PDF document is protected with an encryption not supported by PDFsharp."
是否仅支持AES,还是需要更改打开文件的方法?
Is AES just not supported, or do I need to change the method in which I open the file?
Using InDoc As PdfDocument = PdfReader.Open(InputFileName, Password, PdfDocumentOpenMode.Import)
Using OutDoc As PdfDocument = New PdfDocument
For Each page As PdfPage In InDoc.Pages
OutDoc.AddPage(page)
Next
End Using
End Using
推荐答案
PDFsharp尚不支持Adobe 7+的AES.
PDFsharp does not support AES for Adobe 7+ yet.
这篇关于使用PDFsharp打开AES 128位加密文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文