Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
参考这个
http://stackoverflow.com/questions/17524857/merging-pdf-in-asp-net-c-sharp/17525948?noredirect=1#comment25485091_17525948
我的问题,我有用户 IText 用于合并 pdf 文档。我正在获取" PdfReader not opened with owner password "一些文件。有什么建议么
" PdfReader not opened with owner password "
在 PdfReader 定义后添加此代码
PdfReader.unethicalreading = true;
对于 iText 7 它是
PdfReader pdfReader = new PdfReader(PATH + name + ".pdf"); pdfReader.setUnethicalReading(true);
另请参阅: itext7-how-decrypt-pdf-document-owner-password