- Code: Select all
if (strOwnerPassword != "")
{
// Set the password and permissions
pdfSource.Security.Encrypt("", strOwnerPassword, Spire.Pdf.Security.PdfPermissionsFlags.None, PdfEncryptionKeySize.Key256Bit);
}
You can download an example forms document from here http://support.servicetrade.com/en/arti ... -pdf-forms any one of the files will cause the issue but the Backflow example is the one that I have been using.