Ejemplo n.º 1
0
 /**
  * The constructor.
  *
  * @param string $filename The source filename
  */
 public function __construct($filename)
 {
     parent::__construct($filename);
     // resolve Pages-Dictonary
     $pages = $this->resolveObject($this->_root[1][1]['/Pages']);
     // Read pages
     $this->_readPages($pages, $this->_pages);
     // count pages;
     $this->_pageCount = count($this->_pages);
 }
Ejemplo n.º 2
0
 /**
  * Constructor
  *
  * @param string $filename  Source-Filename
  * @param object $fpdi      Object of type fpdi
  */
 function __construct($filename, &$fpdi)
 {
     $this->fpdi =& $fpdi;
     parent::__construct($filename);
     // resolve Pages-Dictonary
     $pages = $this->pdf_resolve_object($this->c, $this->root[1][1]['/Pages']);
     // Read pages
     $this->read_pages($this->c, $pages, $this->pages);
     // count pages;
     $this->page_count = count($this->pages);
 }
Ejemplo n.º 3
0
 /**
  * Constructor
  *
  * @param string $filename  Source-Filename
  * @param object $fpdi      Object of type fpdi
  */
 function __construct($filename, &$fpdi)
 {
     $this->fpdi =& $fpdi;
     $this->filename = $filename;
     parent::__construct($filename);
     if ($this->success == false) {
         return false;
     }
     // resolve Pages-Dictonary
     $pages = $this->pdf_resolve_object($this->c, $this->root[1][1]['/Pages']);
     if ($this->success == false) {
         return false;
     }
     // Read pages
     $this->read_pages($this->c, $pages, $this->pages);
     if ($this->success == false) {
         return false;
     }
     // count pages;
     $this->page_count = count($this->pages);
 }