setasign\SetaPDF2\Core\Document
ObjectStreamCompressor Class for compressing objects in object-streams
File: /SetaPDF v2/Core/Document/ObjectStreamCompressor.php
Old class name (alias):
\SetaPDF_Core_Document_ObjectStreamCompressor
Class hierarchy
Summary
Properties
$_gcCollectCyclesThreshold
protected int ObjectStreamCompressor::$_gcCollectCyclesThreshold
Define how many streams should be created before gc_collect_cycles() is called if GC is disabled.
This property allows manual control about the garbage collection to gain performance.
$_objectsPerStream
protected int ObjectStreamCompressor::$_objectsPerStream
Methods
__construct()
public ObjectStreamCompressor::__construct (
\SetaPDF_Core_Document $document,
int $objectsPerStream = 400,
int $callGcCollectAfterStreamsCount = 5
)int $objectsPerStream = 400,
int $callGcCollectAfterStreamsCount = 5
Parameters
- $document : \SetaPDF_Core_Document
- $objectsPerStream : int
- $callGcCollectAfterStreamsCount : int
register()
Register this instance at the document instance.
Exceptions
setCollector()
Parameters
- $collector : \SetaPDF_Core_Document_ObjectCollectorInterface