// Note as stated by spec the desscription and file display // shall not be derived from the encrypted payload's actual file name // to avoid potential disclosure of sensitive information public static String GenerateDescription(PdfEncryptedPayload ep) { String result = "This embedded file is encrypted using " + ep.GetSubtype().GetValue(); PdfName version = ep.GetVersion(); if (version != null) { result += " , version: " + version.GetValue(); } return(result); }
public static String GenerateFileDisplay(PdfEncryptedPayload ep) { return(ep.GetSubtype().GetValue() + "Protected.pdf"); }