"添加启用注释ADOBE READER"使用Acrobat [英] "Adding Enable for commenting Adobe Reader" using Acrobat
问题描述
我使用iTextSharp的创造上的PDF文档,后来我想添加将启用注释ADOBE READER使用Acrobat,但我得到错误的。
您没有权限写入此文件
块引用>
下面用我的代码来创建PDF文件:
使用(的FileStream FS =新的FileStream(dPDFFile_temp,FileMode.Create,FileAccess.Write,FileShare.None))
{
使用(文档文件=新的文件())
{
使用(PdfCopy作家=新PdfCopy(DOC,FS))
{
Doc.Open() ;
的for(int i = 1; I< = R.NumberOfPages;我++)
{
writer.AddPage(writer.GetImportedPage(R,I));
}
Doc.Close();
}
}
}
解决方案您所要求的东西是不可能的:请参见 http://support.itextpdf.com/node/ 24
制作的PDF阅读器的要求是由Adobe拥有的私钥。使用该密钥比Adobe其他任何第三方,会违反法律。
I am using iTextSharp to create on PDF document, later i want to add "Adding Enable for commenting Adobe Reader" using Acrobat, but i getting error as
You do not have permission to write to this file
Here my code used to create PDF file:
using (FileStream FS = new FileStream(dPDFFile_temp, FileMode.Create, FileAccess.Write, FileShare.None)) { using (Document Doc = new Document()) { using (PdfCopy writer = new PdfCopy(Doc, FS)) { Doc.Open(); for (int i = 1; i <= R.NumberOfPages; i++) { writer.AddPage(writer.GetImportedPage(R, i)); } Doc.Close(); } } }
解决方案You are asking something that is impossible: see http://support.itextpdf.com/node/24
Making a PDF reader-enabled requires a private key that is owned by Adobe. Any third party other than Adobe using that key, would be in violation with the law.
这篇关于"添加启用注释ADOBE READER"使用Acrobat的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!