Gestión de la visibilidad de metadatos en PDF
¿Qué es visible en las categorías de metadatos?
Los metadatos son visibles para cualquiera que pueda abrir un PDF. Estos detalles incluyen los siguientes elementos:
// 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- Cuando solo se establece una Contraseña de Propietario, los usuarios tienen acceso completo a los metadatos del PDF, incluyendo la capacidad de ver y modificar todas las propiedades del documento.
- Cuando solo se establece una Contraseña de Usuario, el PDF solo puede ser abierto por aquellos que tienen la contraseña. Los usuarios pueden ver las propiedades de los metadatos, pero la modificación de estos está restringida.
UserPassword si está configurado. Por el contrario, otros visores de PDF como Foxit requieren que los usuarios proporcionen la Contraseña de propietario para editar los metadatos del PDF, además de la Contraseña de usuario para abrir y ver el PDF.





