Skip to content
ComPDF
DemoSampleAPI ReferenceFAQ

PDF Generation Template Editor

Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.

View on GitHub

Document Information

This example shows how to get document information:

C#
CPDFDocument document = CPDFDocument.InitWithFilePath("filePath");
CPDFInfo info = document.GetInfo();
string title = info.Title;          // Document title.
string author = info.Author;        // Document author.
string subject = info.Subject;      // Document subject.
string creator = info.Creator;      // Application name that created the document
string producer = info.Producer;    // Application name that generated PDF data
string keywords = info.Keywords;    // Document keywords.
string creationDate = info.CreationDate;	// Document creation date
string modificationDate = info.ModificationDate;    // Document last modified date