setasign\SetaPDF2\Core\Xmp

PdfA A helper class to handle PDF/A metadata

File: /SetaPDF v2/Core/Xmp/PdfA.php
Old class name (alias): \SetaPDF_Core_XmpHelper_PdfA

Class hierarchy

Summary

Static Methods

_extendShemaForTrappedValue()

Adds XMP schema for the Trapped value.

Parameters
$info : \SetaPDF_Core_Document_Info
 
Exceptions

Throws \DOMException

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception

getPartAndConformance()

public static PdfA::getPartAndConformance (): array{0: string|false, 1: string|false}

Get the PDF/A part and conformance from a document instance.

Parameters
$document : \SetaPDF_Core_Document
 
Return Values

Key 0 holds the part, key 1 the conformance

Exceptions

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception

update()

public static PdfA::update (
\SetaPDF_Core_Document $document,
string $part,
string $conformance
): void

Updates the documents metadata package to PDF/A.

Parameters
$document : \SetaPDF_Core_Document
 
$part : string

The PDF/A norm (e.g. 1, 2, or 3)

$conformance : string

The conformance level (e.g. B, U, or A)

Exceptions

Throws \DOMException

Throws \setasign\SetaPDF2\Core\SecHandler\Exception

Throws \setasign\SetaPDF2\Core\Type\Exception