/** * Object constructor. * * Validates the data source and enables debug logging if so configured. * * @param \ZendPdf\BinaryParser\DataSource\AbstractDataSource $dataSource */ public function __construct(\ZendPdf\BinaryParser\DataSource\AbstractDataSource $dataSource) { parent::__construct($dataSource); $this->imageType = \ZendPdf\Image::TYPE_UNKNOWN; }
/** * Reads the Pascal string from the binary file at the current offset * location. Overridden to fix return character set at UTF-16BE. * * @param string $characterSet (optional) --Ignored-- * @param integer $lengthBytes (optional) Number of bytes that make up the * length. Default is 1. * @return string * @throws \ZendPdf\Exception\ExceptionInterface */ public function readStringPascal($characterSet = '', $lengthBytes = 1) { return parent::readStringPascal('UTF-16BE'); }