Zarzadzanie widocznoscia metadanych w plikach PDF

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

Co jest widoczne w kategoriach metadanych?

Metadane sa widoczne dla kazdego, kto moze otworzyc plik PDF. Te szczegoly obejmuja nastepujace elementy:

// 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
  • Gdy ustawione jest tylko haslo wlasciciela, uzytkownicy maja pelny dostep do metadanych PDF, w tym mozliwosc przegladania i modyfikowania wszystkich wlasciwosci dokumentu.
  • Gdy ustawione jest tylko haslo uzytkownika, plik PDF moze zostac otwarty tylko przez osoby posiadajace to haslo. Uzytkownicy moga przegladac wlasciwosci metadanych, ale modyfikowanie metadanych jest ograniczone.

Zwróć uwagęAdobe Acrobat Pro pozwala uzytkownikom edytowac metadane PDF po dostarczeniu UserPassword, jesli zostalo ono ustawione. W przeciwienstwie do tego, inne przegladarki PDF, takie jak Foxit, wymagaja od uzytkownikow dostarczenia OwnerPassword w celu edytowania metadanych PDF, oprócz UserPassword do otwarcia i przegladania PDF.

Curtis Chau
Autor tekstów technicznych

Curtis Chau posiada tytuł licencjata z informatyki (Uniwersytet Carleton) i specjalizuje się w front-endowym rozwoju, z ekspertką w Node.js, TypeScript, JavaScript i React. Pasjonuje się tworzeniem intuicyjnych i estetycznie przyjemnych interfejsów użytkownika, Curtis cieszy się pracą z nowoczesnymi frameworkami i tworzeniem dobrze zorganizowanych, atrakcyjnych wizualnie podrę...

Czytaj więcej
Gotowy, aby rozpocząć?
Nuget Pliki do pobrania 18,135,201 | Wersja: 2026.4 just released
Still Scrolling Icon

Wciąż przewijasz?

Czy chcesz szybko dowodu? PM > Install-Package IronPdf
Uruchom przykład i zobacz, jak Twój kod HTML zamienia się w plik PDF.