示例#1
0
 /**
  * Object constructor.
  *
  * Validates the data source and enables debug logging if so configured.
  *
  * @param Zend_Pdf_FileParserDataSource $dataSource
  * @throws Zend_Pdf_Exception
  */
 public function __construct(Zend_Pdf_FileParserDataSource $dataSource)
 {
     parent::__construct($dataSource);
     /* Enable debug logging if the shared framework debug logger exists.
      * See discussion about this special logger in Zend_Log.
      */
     if (Zend_Log::hasLogger('ZF')) {
         $this->_debug = true;
         $this->_debugLog('Parsing font: ' . $dataSource->__toString());
     }
     $this->fontType = Zend_Pdf_Font::TYPE_UNKNOWN;
 }
示例#2
0
 /**
  * Object constructor.
  *
  * Validates the data source and enables debug logging if so configured.
  *
  * @param Zend_Pdf_FileParserDataSource $dataSource
  * @throws Zend_Pdf_Exception
  */
 public function __construct(Zend_Pdf_FileParserDataSource $dataSource)
 {
     parent::__construct($dataSource);
     $this->imageType = Zend_Pdf_Image::TYPE_UNKNOWN;
 }