Extended feature prompt in adobe pdf reader

I’m using the following code to make a pdf form read only:

FileStream fs = new FileStream(pdfInputPath, FileMode.Open, FileAccess.ReadWrite);
// Instantiate Document instance
Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(fs);
Aspose.Pdf.Facades.FormEditor fm = new Aspose.Pdf.Facades.FormEditor(pdfDocument, fs);
foreach (Field formField in pdfDocument.Form.Fields)
{
if (formField.FullName.Contains(“saveform”))
{
fm.RemoveField(formField.FullName);
}
if (formField.FullName.Contains(“Button1”))
{
fm.RemoveField(formField.FullName);
}
}
fm.Save();
fs.Flush();
fs.Dispose();

                            Aspose.Pdf.Facades.Form pdfForm = new Aspose.Pdf.Facades.Form(pdfInputPath, pdfoutPath + "\\" + InputFileName);
                            pdfForm.FlattenAllFields();
                            pdfForm.Save();

When I save the form using the above code and reopen using adobe reader, I’m getting “The document enabled extended features in adobe reader. The document has been changed since it was created…”. Is there any way I can suppress this prompt or change the code in such a way that the prompt does not come up? Any help is much appreciated.

Hi Priya,

Thanks for your inquiry. You may remove extend rights from PDF document using RemoveUsageRights() as following, hopefully it will help you to accomplish the task.

Document document = new Document("input.pdf");
PdfFileSignature sign = new PdfFileSignature();
sign.BindPdf(document);
sign.RemoveUsageRights();
document.Save("output.pdf");

Please feel free to contact us for any further assistance.

Best Regards,

Actually I did that already and it is working fine. Thanks.
I tried to update my post about this but it was fixed in “Thread View” and I was not able to update the post but today it is back in “Flat View” and is allowing me to reply/update.

Hi Priya,


Thanks for your feedback. It is good to know that you have managed to resolve the issue at your own.

Please feel free to contact us for any further assistance, we will be more than happy to extend our support.

Best Regards,

I tried with RemoveUsageRights and the pop is no more shown when opening a pdf. But when we close the pdf, it is asking if you want to save the document or not.

Please advise.

@nisg55

Thanks for contacting support.

Would you please share your sample PDF document with us, so that we can test the scenario in our environment and address it accordingly.