元数据可见性

This article was translated from English: Does it need improvement?
Translated
View the article in English

**哪些内容在元数据类别中可见?

任何能够打开 PDF 的人都能看到元数据。

其中包括以下项目:

Pdf.MetaData.Author = "John Doe";
Pdf.MetaData.Keywords = "Key, Word";
Pdf.MetaData.CreationDate = DateTime.Today;
Pdf.MetaData.ModifiedDate = DateTime.Now;
Pdf.MetaData.CustomProperties.Add("Test", "val");
Pdf.MetaData.Producer = "test";
Pdf.MetaData.Subject = "test metadata";
Pdf.MetaData.Title = "test";
Pdf.MetaData.Creator = "test";

Pdf.SecuritySettings.UserPassword = "ironuser";
Pdf.SecuritySettings.OwnerPassword = "ironowner";
Pdf.MetaData.Author = "John Doe";
Pdf.MetaData.Keywords = "Key, Word";
Pdf.MetaData.CreationDate = DateTime.Today;
Pdf.MetaData.ModifiedDate = DateTime.Now;
Pdf.MetaData.CustomProperties.Add("Test", "val");
Pdf.MetaData.Producer = "test";
Pdf.MetaData.Subject = "test metadata";
Pdf.MetaData.Title = "test";
Pdf.MetaData.Creator = "test";

Pdf.SecuritySettings.UserPassword = "ironuser";
Pdf.SecuritySettings.OwnerPassword = "ironowner";
Pdf.MetaData.Author = "John Doe"
Pdf.MetaData.Keywords = "Key, Word"
Pdf.MetaData.CreationDate = DateTime.Today
Pdf.MetaData.ModifiedDate = DateTime.Now
Pdf.MetaData.CustomProperties.Add("Test", "val")
Pdf.MetaData.Producer = "test"
Pdf.MetaData.Subject = "test metadata"
Pdf.MetaData.Title = "test"
Pdf.MetaData.Creator = "test"

Pdf.SecuritySettings.UserPassword = "ironuser"
Pdf.SecuritySettings.OwnerPassword = "ironowner"
VB   C#
  • 如果只设置了所有者密码,用户就可以完全访问 PDF 元数据,包括查看和修改所有文档属性。
  • 如果只设置了用户密码,则只有拥有密码的用户才能打开 PDF。用户可以查看元数据属性,但修改元数据受到限制。

请注意
如果设置了用户密码,Adobe Acrobat Pro 允许用户通过提供用户密码来编辑 PDF 元数据。相比之下,其他 PDF 阅读器(如 Foxit)除了要求用户提供打开和查看 PDF 的用户密码外,还要求用户提供编辑 PDF 元数据的 OwnerPassword。