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
checkProfile()
Check the PDF against a single conformance profile.
public
checkProfile(ConformanceProfile $profile) : ConformanceResult
Parameters
- $profile : ConformanceProfile
Return values
ConformanceResultcheckProfiles()
Check the PDF against multiple conformance profiles.
public
checkProfiles(array<string|int, ConformanceProfile> $profiles) : array<int, ConformanceResult>
Parameters
- $profiles : array<string|int, ConformanceProfile>
Return values
array<int, ConformanceResult>getReader()
Get the underlying PdfReader for additional inspection.
public
getReader() : PdfReader
Return values
PdfReaderopen()
Open a PDF file for conformance checking.
public
static open(string $path[, string $password = '' ]) : self
Parameters
- $path : string
- $password : string = ''
Return values
selfopenString()
Open a PDF from a byte string for conformance checking.
public
static openString(string $bytes[, string $password = '' ]) : self
Parameters
- $bytes : string
- $password : string = ''