Prevent PDF from editing in pdf writer programmatically
I am creating PDFs using iTextSharp Library and I want to prevent pdf files from editing in pdf writer.
plz help
Software
I am creating PDFs using iTextSharp Library and I want to prevent pdf files from editing in pdf writer.
plz help
by smahmood_ali Accepted solution
by thumbsup2 Accepted solution
by smahmood_ali Accepted solution
Now I am able to apply restrictions on PDF programmatically using st.SetEncryption(false, null, null, PdfWriter.AllowPrinting | PdfWriter.AllowModifyContents | PdfWriter.AllowCopy)
but I have to allow only three following elements of PDF document
1) Printing
2) Content Copying for accessibility
3) Filling of form fields.
Above lines of code is also allowing "Content Copying" element.
by thumbsup2 Accepted solution
This discussion is closed to new replies.
Sort by Trending