Reading Metadata

DynamicPDF Viewer supports displaying PDF metadata via the PdfDocument class. Available properties include, Author, Subject, Title, Keywords, and other properties. See the API documentation for a complete list of available metadata properties (PdfDocument).

The following example illustrates displaying a message box containing metadata information for a provided PDF.

PdfDocument document = new PdfDocument(“Document.pdf”);
string metadata = "Author :" + document.Author + "\nSubject :" + document.Subject + "\nTitle :" + document.Title;
MessageBox.Show(metadata);        
Dim MyDocument As New PdfDocument(pdfFilePath)
Dim DocumentMetaData As String
DocumentMetaData = "Author :" + MyDocument.Author + vbCrLf + "Subject :" + MyDocument.Subject + vbCrLf + "Title :" + MyDocument.Title
MessageBox.Show(DocumentMetaData)

In this topic