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
PATTERN_TYPE
public
mixed
PATTERN_TYPE
= 2
PDF_TYPE
public
mixed
PDF_TYPE
= 'Pattern'
Properties
$extGState
public
PdfReference|null
$extGState
= null
$generationNumber
public
int
$generationNumber
= 0
$matrix
public
PdfArray|null
$matrix
= null
$objectNumber
public
int
$objectNumber
= 0
$shading
public
PdfReference|PdfDictionary
$shading
Methods
__construct()
public
__construct(PdfReference|PdfDictionary $shading) : mixed
Parameters
- $shading : PdfReference|PdfDictionary
getPatternType()
public
getPatternType() : int
Return values
inttoIndirectObject()
Wrap the object in an indirect object structure: X Y obj ... endobj
public
toIndirectObject() : string
Return values
stringtoPdf()
Serialize the object's dictionary/value to PDF syntax.
public
toPdf() : string