private static void Protect(string inputFileName)
{
// ExStart:ProtectDocument
Document doc = new Document(inputFileName);
doc.Protect(ProtectionType.AllowOnlyFormFields, "password");
// ExEnd:ProtectDocument
Console.WriteLine("\nDocument protected successfully.");
}
/// <summary>