Contraseñas, Seguridad y Metadatos
IronPDF puede hacer modificaciones a los metadatos y configuraciones de seguridad de un PDF. En términos de seguridad, esto incluye la capacidad de hacer que los PDFs sean de solo lectura, no imprimibles, protegidos por contraseña y cifrados. Para los metadatos, esto incluye la capacidad de definir nuevas propiedades y editar las existentes.
To manage a PDF's metadata in IronPDF for Java, the developer must first retrieve a reference to its MetadataManager. Esta clase proporciona métodos para el acceso directo y modificación del contenido meta del PDF. Los desarrolladores pueden leer y editar rápidamente las propiedades meta comúnmente definidas en documentos PDF usando getters y setters con el mismo nombre.
La lista completa de propiedades con getters y setters convenientes es la siguiente:
ProducerCreationDateCreatorAuthorKeywordsSubjectTitleModifiedDate
The code example uses the setAuthor, setTitle, setKeywords, and setModifiedDate methods to modify the working document's author, title, and keywords.
To get and set properties other than the ones previously listed, use the getAnyMetadata and setAnyMetadata methods with the name of the desired property.
Likewise, accessing and modifying security settings on a PDF document must be done through a SecurityManager. Call getSecurity on a PdfDocument to retrieve a reference to its SecurityManager and use it to restrict access to the PDF as required for the intended use.
Java developers can use a SecurityOptions object for more granular control over PDF security settings.
Explorar la API MetadataManager para la gestión de PDF en Java






