phpdftk API Documentation

PostScriptXObject extends PdfStream
in package

PostScript XObject (/Subtype /PS).

ISO 32000-2 section 8.8.2. Deprecated since PDF 1.7.1. The stream data contains the PostScript language code.

Attributes
#[DeprecatedPdfFeature]
$since: '1.7.1'
$removedIn: '2.0'

Table of Contents

Constants

PDF_SUBTYPE  = 'PS'
PDF_TYPE  = 'XObject'

Properties

$data  : string
$dictionary  : PdfDictionary
$generationNumber  : int
$level1  : PdfReference|null
$objectNumber  : int

Methods

__construct()  : mixed
setFilter()  : void
Set a filter to encode/decode the stream data.
toIndirectObject()  : string
Wrap the object in an indirect object structure: X Y obj ... endobj
toPdf()  : string
Returns the stream body: dictionary, stream keyword, data, endstream.

Constants

Properties

$generationNumber

public int $generationNumber = 0

Methods

__construct()

public __construct([string $data = '' ]) : mixed
Parameters
$data : string = ''

setFilter()

Set a filter to encode/decode the stream data.

public setFilter(FilterInterface $filter, string $pdfFilterName) : void
Parameters
$filter : FilterInterface

The filter implementation

$pdfFilterName : string

The PDF filter name (e.g. 'FlateDecode', 'ASCII85Decode')

toIndirectObject()

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

public toIndirectObject() : string
Return values
string

toPdf()

Returns the stream body: dictionary, stream keyword, data, endstream.

public toPdf() : string

/Length is injected into the dictionary at serialization time. If a filter is set, the data is encoded before writing.

Return values
string

        
On this page

Search results