Hasla, bezpieczenstwo i metadane
IronPDF moze wprowadzac modyfikacje do metadanych i ustawien zabezpieczen PDF. Pod wzgledem zabezpieczen obejmuje to mozliwosc ustawienia plikow PDF jako tylko do odczytu, niemozliwych do wydruku, chronionych haslem i zaszyfrowanych. W przypadku metadanych obejmuje to mozliwosc definiowania nowych wlasciwosci i edycji istniejacych.
To manage a PDF's metadata in IronPDF for Java, the developer must first retrieve a reference to its MetadataManager. Ta klasa zapewnia metody do bezposredniego dostepu i modyfikacji metadanych zawartosci PDF. Deweloperzy moga szybko odczytywac i edytowac powszechnie zdefiniowane wlasciwosci metadanych w dokumentach PDF za pomoca getterow i setterow o tej samej nazwie.
Pelna lista wlasciwosci z wygodnymi getterami i setterami znajduje sie ponizej:
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.


