phpdftk API Documentation

ColorInterface
in

Common contract for PDF color operands — used by ContentStream color operators.

getColorSpace() returns the PDF name (DeviceRGB, DeviceCMYK, DeviceGray) and toArray() returns component values in the order PDF operators expect.

Table of Contents

Methods

getColorSpace()  : string
toArray()  : array<int, float>

Methods

getColorSpace()

public getColorSpace() : string
Return values
string

toArray()

public toArray() : array<int, float>
Return values
array<int, float>

        
On this page

Search results