phpdftk API Documentation

ConformanceChecker
in package

FinalYes

High-level conformance checker for existing PDFs.

Loads a PDF via PdfReader and validates it against one or more conformance profiles, returning structured results.

Usage: $results = ConformanceChecker::open('document.pdf') ->checkProfile(PdfAProfile::A1b);

$results = ConformanceChecker::openString($bytes) ->checkProfiles([PdfAProfile::A2b, PdfUaProfile::UA1]);

Table of Contents

Methods

checkProfile()  : ConformanceResult
Check the PDF against a single conformance profile.
checkProfiles()  : array<int, ConformanceResult>
Check the PDF against multiple conformance profiles.
getReader()  : PdfReader
Get the underlying PdfReader for additional inspection.
open()  : self
Open a PDF file for conformance checking.
openString()  : self
Open a PDF from a byte string for conformance checking.

Methods

open()

Open a PDF file for conformance checking.

public static open(string $path[, string $password = '' ]) : self
Parameters
$path : string
$password : string = ''
Return values
self

openString()

Open a PDF from a byte string for conformance checking.

public static openString(string $bytes[, string $password = '' ]) : self
Parameters
$bytes : string
$password : string = ''
Return values
self

        
On this page

Search results