phpdftk API Documentation

ReaderDocumentInspector
in package
implements DocumentInspector

FinalYes

Inspects a parsed PDF (via PdfReader) for conformance validation.

Uses the reader's hydration API to obtain typed objects where possible, and falls back to raw dictionary inspection for fields not yet hydrated.

Table of Contents

Interfaces

DocumentInspector
Abstract inspection interface for conformance validation.

Methods

__construct()  : mixed
getCatalog()  : Catalog
getFonts()  : iterable<string|int, PdfObject>
getImageXObjects()  : iterable<string|int, ImageXObject>
getInfo()  : Info|null
getPages()  : iterable<string|int, Page>
getReferenceXObjects()  : iterable<string|int, FormXObject>
getRegisteredObjects()  : iterable<string|int, PdfObject>
All registered PdfObject instances.
getThreeDStreams()  : iterable<string|int, ThreeDStream>
getXmpBytes()  : string|null
Raw XMP XML bytes, or null if no metadata stream.
hasEmbeddedFiles()  : bool
Whether the document contains embedded files.
hasEncryption()  : bool
Whether the document has encryption configured.
hasInteractiveForms()  : bool
Whether the document contains interactive forms (AcroForm).
hasJavaScript()  : bool
Whether the document contains JavaScript actions.
hasMultimediaContent()  : bool
Whether the document contains multimedia content (movies, sounds, renditions).
hasOutputIntents()  : bool
Whether the catalog has OutputIntents.
hasOutputIntentWithIccProfile()  : bool
Whether any OutputIntent has an embedded ICC profile (/DestOutputProfile).
hasRasterOnlyContent()  : bool
Whether all page content is raster-only (no text operators, no vector paths).
hasThreeDAnnotations()  : bool
Whether the document contains 3D annotations.
hasTransparency()  : bool
Whether any page uses a transparency group.
hasXmpMetadata()  : bool
Whether the catalog has an XMP metadata stream.

Methods

getXmpBytes()

Raw XMP XML bytes, or null if no metadata stream.

public getXmpBytes() : string|null
Return values
string|null

hasEmbeddedFiles()

Whether the document contains embedded files.

public hasEmbeddedFiles() : bool
Return values
bool

hasEncryption()

Whether the document has encryption configured.

public hasEncryption() : bool
Return values
bool

hasInteractiveForms()

Whether the document contains interactive forms (AcroForm).

public hasInteractiveForms() : bool
Return values
bool

hasJavaScript()

Whether the document contains JavaScript actions.

public hasJavaScript() : bool
Return values
bool

hasMultimediaContent()

Whether the document contains multimedia content (movies, sounds, renditions).

public hasMultimediaContent() : bool
Return values
bool

hasOutputIntents()

Whether the catalog has OutputIntents.

public hasOutputIntents() : bool
Return values
bool

hasOutputIntentWithIccProfile()

Whether any OutputIntent has an embedded ICC profile (/DestOutputProfile).

public hasOutputIntentWithIccProfile() : bool
Return values
bool

hasRasterOnlyContent()

Whether all page content is raster-only (no text operators, no vector paths).

public hasRasterOnlyContent() : bool
Return values
bool

hasThreeDAnnotations()

Whether the document contains 3D annotations.

public hasThreeDAnnotations() : bool
Return values
bool

hasTransparency()

Whether any page uses a transparency group.

public hasTransparency() : bool
Return values
bool

hasXmpMetadata()

Whether the catalog has an XMP metadata stream.

public hasXmpMetadata() : bool
Return values
bool

        
On this page

Search results