Answers for "c# check if pdf is protected without password"

C#
0

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:\Users\Administrator\Desktop\Encrypted.pdf");

            bool isEncrypted = doc.IsEncrypted;
            Console.WriteLine(isEncrypted);
            Console.Read();
        }
    }
}
Posted by: Guest on August-20-2021

Code answers related to "c# check if pdf is protected without password"

C# Answers by Framework

Browse Popular Code Answers by Language