Documentation

PageClassifier
in package

Pdf extract content page classifier class

Tags
category

Pop

author

Nick Sagona, III nick@popphp.org

copyright

Copyright (c) 2009-2026 Nick Sagona, III

license

https://www.popphp.org/license New BSD License

version
6.0.0

Table of Contents

Constants

PAINT_OPERATORS  = ['f', 'F', 'f*', 'S', 's', 'B', 'B*', 'b', 'b*', 'sh']
Operators that paint/mark the page
TEXT_OPERATORS  = ['Tj', 'TJ', "'", '"']
Text-showing operators

Methods

isImageOnly()  : bool
Determine if a page's content is nothing but a single drawn image
resolveIsImage()  : bool|null
Resolve a Do operand's XObject and determine if it's an Image (true), a Form (false), or unresolvable (null)

Constants

PAINT_OPERATORS

Operators that paint/mark the page

protected mixed PAINT_OPERATORS = ['f', 'F', 'f*', 'S', 's', 'B', 'B*', 'b', 'b*', 'sh']

TEXT_OPERATORS

Text-showing operators

protected mixed TEXT_OPERATORS = ['Tj', 'TJ', "'", '"']

Methods

resolveIsImage()

Resolve a Do operand's XObject and determine if it's an Image (true), a Form (false), or unresolvable (null)

protected static resolveIsImage(Document $doc, PageInfo $page, string $name) : bool|null
Parameters
$doc : Document
$page : PageInfo
$name : string
Return values
bool|null

        
On this page

Search results