phpdftk API Documentation

ConformanceXmpWriter
in package

FinalYes

Builds XMP metadata with the conformance identification schema.

PDF/A requires specific RDF types (rdf:Alt for dc:title, rdf:Seq for dc:creator) that the generic XmpWriter does not produce. This class builds the XMP packet directly, following the pattern used in the existing PdfAConformanceTest.

Table of Contents

Methods

buildXmp()  : string
Build a complete XMP packet with conformance identification.

Methods

buildXmp()

Build a complete XMP packet with conformance identification.

public buildXmp(ConformanceProfile $profile[, string $title = '' ][, string $creator = '' ][, string $producer = '' ]) : string
Parameters
$profile : ConformanceProfile

The target conformance profile

$title : string = ''

Document title (for dc:title)

$creator : string = ''

Document creator/author (for dc:creator)

$producer : string = ''

PDF producer string (for pdf:Producer)

Return values
string

        
On this page

Search results