phpdftk API Documentation

XmpWriter
in package

FinalYes

Serialize an {@see XmpPacket} into an XMP XML packet with `<?xpacket?>` wrapping.

Handles namespace registration and RDF/Description structure. The output includes trailing padding per the XMP spec to allow in-place updates without rewriting the file.

Table of Contents

Methods

__construct()  : mixed
serialize()  : string

Methods

__construct()

public __construct([array<string, string> $additionalNamespaces = [] ]) : mixed
Parameters
$additionalNamespaces : array<string, string> = []

prefix => URI


        
On this page

Search results