Как получить метаданные из PDF с помощью PDFsharp. См. Изображение. Я хочу, чтобы извлечь 'Ограничение документа Резюме'Получить метаданные из PDF с помощью PDFsharp
private static void Method1(string strPDFAddress)
{
PdfDocument pdfDoc = new PdfDocument(strPDFAddress);
Console.WriteLine("--------------------------------------------------------------");
Console.WriteLine("File: {0}", strPDFAddress);
Console.WriteLine("Author: {0}", pdfDoc.Info.Author);
Console.WriteLine("CreationDate: {0}", pdfDoc.Info.CreationDate);
Console.WriteLine("Creator: {0}", pdfDoc.Info.Creator);
Console.WriteLine("Keywords: {0}", pdfDoc.Info.Keywords);
PdfDocumentSettings pdfDocSettings = pdfDoc.Settings;
Console.WriteLine(pdfDocSettings.ToString());
PdfSecuritySettings pdfSecuritySettings = pdfDoc.SecuritySettings;
Console.WriteLine(pdfSecuritySettings.PermitExtractContent);
//PdfSharp.Pdf.Advanced.PdfFormXObject xObj =
PdfDictionary.DictionaryElements pdfDictionaryElements = pdfDoc.Info.Elements;
Console.WriteLine(pdfDictionaryElements.ToString());
}
Нет, это не получит то, что я прошу. –