Zarządzanie widocznoscia metadanych w plikach PDF
Curtis Chau
Updated: 10 czerwca 2025
Co jest widoczne w kategoriach metadanych?
Metadane sa widoczne dla kazdego, kto może otworzyć plik PDF. Te szczegóły obejmuja następujące 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- Gdy ustawione jest tylko haslo wlasciciela, użytkownicy maja pełny dostep do metadanych PDF, w tym możliwosc przeglądania i modyfikowania wszystkich właściwości dokumentu.
- Gdy ustawione jest tylko haslo użytkownika, plik PDF może zostac otwarty tylko przez osoby posiadajace to haslo. Użytkownicy mogą przeglądac właściwości metadanych, ale modyfikowanie metadanych jest ograniczone.
Zwróć uwagę: Adobe Acrobat Pro pozwala użytkownikom edytować metadane PDF, podając
UserPassword jeśli jest ustawiony. W przeciwieństwie do tego, inne przeglądarki PDF, takie jak Foxit, wymagają podania OwnerPassword, aby edytować metadane PDF, oprócz UserPassword do otwierania i przeglądania PDF.
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ęczników.
...
Czytaj więcej