Class PdfMetadata
Contains metadata information from a PDF document.
public sealed class PdfMetadata
- Inheritance
-
PdfMetadata
- Inherited Members
Examples
Example: Retrieve and display PDF metadata.
using LMKit.Document.Pdf;
PdfMetadata meta = PdfInfo.GetMetadata("report.pdf");
Console.WriteLine($"Title : {meta.Title}");
Console.WriteLine($"Author : {meta.Author}");
Console.WriteLine($"Subject : {meta.Subject}");
Console.WriteLine($"Keywords : {meta.Keywords}");
Console.WriteLine($"Creator : {meta.Creator}");
Console.WriteLine($"Producer : {meta.Producer}");
Console.WriteLine($"Created : {meta.CreationDate}");
Console.WriteLine($"Modified : {meta.ModDate}");
Console.WriteLine($"Pages : {meta.PageCount}");
Console.WriteLine($"Version : PDF {meta.FileVersion / 10}.{meta.FileVersion % 10}");
Properties
- Author
Gets the document author.
- CreationDate
Gets the document creation date as a raw PDF date string.
- Creator
Gets the name of the application that created the document.
- FileVersion
Gets the PDF file version (e.g., 14 for PDF 1.4, 17 for PDF 1.7).
- Keywords
Gets the document keywords.
- ModDate
Gets the last modification date as a raw PDF date string.
- PageCount
Gets the total number of pages in the document.
- Producer
Gets the name of the application that produced the PDF.
- Subject
Gets the document subject.
- Title
Gets the document title.
- XmpMetadata
Gets the XMP metadata packet from the document's catalog as a UTF-8 XML string, or
nullif absent.