phpdftk API Documentation

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

$generationNumber

public int $generationNumber = 0

Methods

getShadingType()

public abstract getShadingType() : 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 abstract toPdf() : string
Return values
string

        
On this page

Search results