Shading
extends PdfObject
in package
AbstractYes
Abstract base for PDF shading dictionaries — ISO 32000-2 §8.7.4.
Common entries: ShadingType, ColorSpace, Background, BBox, AntiAlias. Shading types 1–3 are dictionaries and extend this class directly. Types 4–7 must be streams (see ShadingType4..7).
Attributes
- #[RequiresPdfVersion]
- \Phpdftk\Pdf\Core\PdfVersion::V1_3
Table of Contents
Properties
- $antiAlias : bool|null
- $background : PdfArray|null
- $bbox : PdfArray|null
- $colorSpace : ColorSpace|PdfName|PdfArray
- $generationNumber : int
- $objectNumber : int
Methods
- getShadingType() : 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.
- baseDictionary() : PdfDictionary
Properties
$antiAlias
public
bool|null
$antiAlias
= null
$background
public
PdfArray|null
$background
= null
$bbox
public
PdfArray|null
$bbox
= null
$colorSpace
public
ColorSpace|PdfName|PdfArray
$colorSpace
$generationNumber
public
int
$generationNumber
= 0
$objectNumber
public
int
$objectNumber
= 0
Methods
getShadingType()
public
abstract getShadingType() : 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
abstract toPdf() : string
Return values
stringbaseDictionary()
protected
baseDictionary() : PdfDictionary