コード例 #1
0
ファイル: AbstractFont.php プロジェクト: rexmac/zf2
 /**
  * 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 \Zend\Pdf\Exception
  */
 public function readStringPascal($characterSet = '', $lengthBytes = 1)
 {
     return parent::readStringPascal('UTF-16BE');
 }
コード例 #2
0
ファイル: AbstractImage.php プロジェクト: alab1001101/zf2
 /**
  * Object constructor.
  *
  * Validates the data source and enables debug logging if so configured.
  *
  * @param \Zend\Pdf\BinaryParser\DataSource\AbstractDataSource $dataSource
  */
 public function __construct(\Zend\Pdf\BinaryParser\DataSource\AbstractDataSource $dataSource)
 {
     parent::__construct($dataSource);
     $this->imageType = \Zend\Pdf\Image::TYPE_UNKNOWN;
 }