phpdftk API Documentation

ShadingPattern extends PdfObject
in package

Shading pattern (/Type /Pattern /PatternType 2) — ISO 32000-2 §8.7.3.4.

Paints a shading (axial, radial, mesh, etc.) as if it were a color. Required entries: Shading. Optional: Matrix, ExtGState.

Attributes
#[RequiresPdfVersion]
\Phpdftk\Pdf\Core\PdfVersion::V1_3

Table of Contents

Constants

PATTERN_TYPE  = 2
PDF_TYPE  = 'Pattern'

Properties

$extGState  : PdfReference|null
$generationNumber  : int
$matrix  : PdfArray|null
$objectNumber  : int
$shading  : PdfReference|PdfDictionary

Methods

__construct()  : mixed
getPatternType()  : int
toIndirectObject()  : string
Wrap the object in an indirect object structure: X Y obj ... endobj
toPdf()  : string
Serialize the object's dictionary/value to PDF syntax.

Constants

Properties

$generationNumber

public int $generationNumber = 0

Methods

getPatternType()

public getPatternType() : int
Return values
int

toIndirectObject()

Wrap the object in an indirect object structure: X Y obj ... endobj

public toIndirectObject() : string
Return values
string

toPdf()

Serialize the object's dictionary/value to PDF syntax.

public toPdf() : string
Return values
string

        
On this page

Search results