How to extract File info, Metadata and Security Options from an existing PDF fileThe following code shows how to retrieve PDF info objects. c# sample: PDFOperation operation = new PDFOperation("sample.pdf", ""); PDFDocInfo info = operation.DocumentInfo; XmlDocument xml = operation.Metadata; PDFCryptoOptions crypto = operation.ProtectionOptions; operation.Close(); Console.WriteLine("Author: " + info.Author); Console.WriteLine("Creation date: " + info.CreationDate); Console.WriteLine("Keywords: " + info.Keywords); Console.WriteLine("Subject: " + info.Subject); Console.WriteLine("Title: " + info.Title); Console.WriteLine("Protection options: " + crypto.ToString()); |
PDF .NET Library for .NET Software Developers - PDF Component Library for C#, VB.NET and ASP.NET developers Copyright © PDF Technologies Inc., 2010. |