“Adding Enable for commenting Adobe Reader” using Acrobat

你说的曾经没有我的故事 提交于 2019-12-20 06:29:25

问题


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();
        }
    }
}

回答1:


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.



来源:https://stackoverflow.com/questions/18894689/adding-enable-for-commenting-adobe-reader-using-acrobat

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!