Managing Metadata Visibility in PDFs

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

Was ist in den Metadatenkategorien sichtbar?

Metadaten sind für jeden sichtbar, der in der Lage ist, ein PDF zu öffnen. Diese Details umfassen folgende Elemente:

// Assign metadata properties to a PDF document
Pdf.MetaData.Author = "John Doe";  // The author of the document
Pdf.MetaData.Keywords = "Key, Word";  // Keywords associated with the document
Pdf.MetaData.CreationDate = DateTime.Today;  // The date the document was created
Pdf.MetaData.ModifiedDate = DateTime.Now;  // The date and time the document was last modified
Pdf.MetaData.CustomProperties.Add("Test", "val");  // Custom properties for additional metadata
Pdf.MetaData.Producer = "test";  // The software used to produce the document
Pdf.MetaData.Subject = "test metadata";  // The subject of the document
Pdf.MetaData.Title = "test";  // The title of the document
Pdf.MetaData.Creator = "test";  // The original creator of the document

// Security settings for the PDF
Pdf.SecuritySettings.UserPassword = "ironuser";  // Password to open and view the PDF
Pdf.SecuritySettings.OwnerPassword = "ironowner";  // Password providing full permissions, including editing
// Assign metadata properties to a PDF document
Pdf.MetaData.Author = "John Doe";  // The author of the document
Pdf.MetaData.Keywords = "Key, Word";  // Keywords associated with the document
Pdf.MetaData.CreationDate = DateTime.Today;  // The date the document was created
Pdf.MetaData.ModifiedDate = DateTime.Now;  // The date and time the document was last modified
Pdf.MetaData.CustomProperties.Add("Test", "val");  // Custom properties for additional metadata
Pdf.MetaData.Producer = "test";  // The software used to produce the document
Pdf.MetaData.Subject = "test metadata";  // The subject of the document
Pdf.MetaData.Title = "test";  // The title of the document
Pdf.MetaData.Creator = "test";  // The original creator of the document

// Security settings for the PDF
Pdf.SecuritySettings.UserPassword = "ironuser";  // Password to open and view the PDF
Pdf.SecuritySettings.OwnerPassword = "ironowner";  // Password providing full permissions, including editing
' Assign metadata properties to a PDF document
Pdf.MetaData.Author = "John Doe" ' The author of the document
Pdf.MetaData.Keywords = "Key, Word" ' Keywords associated with the document
Pdf.MetaData.CreationDate = DateTime.Today ' The date the document was created
Pdf.MetaData.ModifiedDate = DateTime.Now ' The date and time the document was last modified
Pdf.MetaData.CustomProperties.Add("Test", "val") ' Custom properties for additional metadata
Pdf.MetaData.Producer = "test" ' The software used to produce the document
Pdf.MetaData.Subject = "test metadata" ' The subject of the document
Pdf.MetaData.Title = "test" ' The title of the document
Pdf.MetaData.Creator = "test" ' The original creator of the document

' Security settings for the PDF
Pdf.SecuritySettings.UserPassword = "ironuser" ' Password to open and view the PDF
Pdf.SecuritySettings.OwnerPassword = "ironowner" ' Password providing full permissions, including editing
$vbLabelText   $csharpLabel
  • Wenn nur ein Besitzerpasswort festgelegt ist, haben Benutzer vollen Zugriff auf die PDF-Metadaten, einschließlich der Möglichkeit, alle Dokumenteigenschaften anzuzeigen und zu ändern.
  • Wenn nur ein Benutzerpasswort festgelegt ist, kann das PDF nur von Personen mit dem Passwort geöffnet werden. Benutzer können die Metadateneigenschaften anzeigen, aber das Ändern der Metadaten ist eingeschränkt.

Hinweis:Adobe Acrobat Pro erlaubt Benutzern, die PDF-Metadaten durch Bereitstellung des UserPassword zu bearbeiten, falls es festgelegt ist. Im Gegensatz dazu erfordern andere PDF-Viewer wie Foxit, dass Benutzer das OwnerPassword bereitstellen, um die PDF-Metadaten zu bearbeiten, zusätzlich zum UserPassword zum Öffnen und Anzeigen des PDFs.

Curtis Chau
Technischer Autor

Curtis Chau hat einen Bachelor-Abschluss in Informatik von der Carleton University und ist spezialisiert auf Frontend-Entwicklung mit Expertise in Node.js, TypeScript, JavaScript und React. Leidenschaftlich widmet er sich der Erstellung intuitiver und ästhetisch ansprechender Benutzerschnittstellen und arbeitet gerne mit modernen Frameworks sowie der Erstellung gut strukturierter, optisch ansprechender ...

Weiterlesen
Bereit anzufangen?
Nuget Downloads 16,154,058 | Version: 2025.11 gerade veröffentlicht