c# + 找到pdf文件属性 "Can be opened by"

c# + Find the pdf file property "Can be opened by"

我正在使用 Aspose 库打开 pdf 文件,并且在使用 Adob​​e Acrobat Reader.

时,我正在尝试读取“可以打开方式”中显示的 属性

谁能帮助我,让我知道哪个 属性 在“可以打开”下显示了该信息?

感谢您的帮助。

@SergioKastro,

您可以使用文档 class 的 DocumentInfo 和 Metadata 成员检索和设置 PDF 文档的属性以及 XMP 属性。 C#

// Open document
Document pdfDocument = new Document(dataDir + "GetFileInfo.pdf");
// Get document information
DocumentInfo docInfo = pdfDocument.Info;
// Show document information
Console.WriteLine("Author: {0}", docInfo.Author);
Console.WriteLine("Creation Date: {0}", docInfo.CreationDate);
Console.WriteLine("Keywords: {0}", docInfo.Keywords);
Console.WriteLine("Modify Date: {0}", docInfo.ModDate);
Console.WriteLine("Subject: {0}", docInfo.Subject);
Console.WriteLine("Title: {0}", docInfo.Title);
Facades.PdfFileInfo fileInfo = new Facades.PdfFileInfo(pdfDocument);
fileInfo.GetPdfVersion();

此帮助主题中记录了代码示例:PDF File Metadata