PageClassifier
in package
Pdf extract content page classifier class
Tags
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
isImageOnly()
Determine if a page's content is nothing but a single drawn image
public
static isImageOnly(Document $doc, PageInfo $page) : bool
Parameters
Return values
boolresolveIsImage()
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