Skip to content

Instantly share code, notes, and snippets.

@documentize
Last active February 16, 2026 07:42
Show Gist options
  • Select an option

  • Save documentize/9d3395354b10391cdc40374dc12a375c to your computer and use it in GitHub Desktop.

Select an option

Save documentize/9d3395354b10391cdc40374dc12a375c to your computer and use it in GitHub Desktop.
The example demonstrates how to Extract Properties (Title, Author, Subject, Keywords, Number of Pages) from PDF file.
// Create ExtractPropertiesOptions object to set input file
var options = new ExtractPropertiesOptions("path_to_your_pdf_file.pdf");
// Perform the process and get Properties
var pdfProperties = PdfExtractor.Extract(options);
var filename = pdfProperties.FileName;
var title = pdfProperties.Title;
var author = pdfProperties.Author;
var subject = pdfProperties.Subject;
var keywords = pdfProperties.Keywords;
var created = pdfProperties.Created;
var modified = pdfProperties.Modified;
var application = pdfProperties.Application;
var pdfProducer = pdfProperties.PdfProducer;
var numberOfPages = pdfProperties.NumberOfPages;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment