Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# check if pdf is protected without password

using Spire.Pdf;
using System;


namespace Detect
{
    class Program
    {
        static void Main(string[] args)
        {
            PdfDocument doc = new PdfDocument();
            doc.LoadFromFile(@"C:UsersAdministratorDesktopEncrypted.pdf");

            bool isEncrypted = doc.IsEncrypted;
            Console.WriteLine(isEncrypted);
            Console.Read();
        }
    }
}
Source by www.e-iceblue.com #
 
PREVIOUS NEXT
Tagged: #check #pdf #protected #password
ADD COMMENT
Topic
Name
6+3 =