set
abstract fun set(@NonNull key: String, @Nullable value: String, @NonNull namespace: String, @NonNull namespacePrefix: String)
Sets a single metadata value inside the XMP metadata structure in PDF. This should be preferred for freeform tags and data instead of modifying the PDF metadata dictionary with set.
Parameters
key
Key for the metadata entry, must not be null
.
value
Value for the entry, can be null
.
namespace
XML namespace to which the entry belongs. For custom data use a custom namespace to avoid collisions with other applications writing the metadata.
namespace Prefix
XML namespace prefix/shorthand used in the XML structure. E.g.
dc
for Adobe DC namespace.