SetaPDF_MetaManager::setDocumentMetadata()
Description
class SetaPDF_MetaManager extends SetaPDF {
mixed setDocumentMetadata ( mixed $metadata[, boolean $force=false] )
}
Sets the documents XMP metadata.
Actually the API doesn't automatically synchronize the values between XMP metadata and metadata in the document information dictionary.
Parameters
$metadata
The documents XMP data as a string.
$force
The API will only rewrite the metadata if they were changed. You can for force the metadata to be written with this parameter. It's normally only usable if you want to delete the XMP metadata from the document. Just pass false to the $metadata parameter and set this parameter to true.
Return Value
The method will return true if the data is changed. False if the data is not changed.
In case of an error the method will return a SetaPDF_Error object.