HalftoneType16
extends PdfStream
in package
Threshold array halftone stream (HalftoneType 16) — ISO 32000-2 §10.6.5.
Uses 16-bit threshold values (2 bytes per cell).
Attributes
- #[RequiresPdfVersion]
- \Phpdftk\Pdf\Core\PdfVersion::V1_6
Table of Contents
Constants
- PDF_TYPE = 'Halftone'
Properties
- $data : string
- $dictionary : PdfDictionary
- $generationNumber : int
- $height : int
- $objectNumber : int
- $transferFunction : Serializable|null
- $width : 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
PDF_TYPE
public
mixed
PDF_TYPE
= 'Halftone'
Properties
$data
public
string
$data
= ''
$dictionary
public
PdfDictionary
$dictionary
$generationNumber
public
int
$generationNumber
= 0
$height
public
int
$height
= 0
$objectNumber
public
int
$objectNumber
= 0
$transferFunction
public
Serializable|null
$transferFunction
= null
$width
public
int
$width
= 0
Methods
__construct()
public
__construct([int $width = 0 ][, int $height = 0 ][, string $data = '' ]) : mixed
Parameters
- $width : int = 0
- $height : int = 0
- $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
stringtoPdf()
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.