Пример #1
1
 /**
  * Get PDF-Version
  *
  * And reset the PDF Version used in FPDI if needed
  */
 function getPDFVersion()
 {
     parent::getPDFVersion();
     if (isset($this->fpdi->importVersion) && $this->pdfVersion > $this->fpdi->importVersion) {
         $this->fpdi->importVersion = $this->pdfVersion;
     }
 }
Пример #2
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);
 }
Пример #3
0
    /**
     * Constructor
     *
     * @param string $filename  Source-Filename
     * @param object $fpdi      Object of type fpdi
     */
    function fpdi_pdf_parser($filename,&$fpdi) {
        $this->fpdi =& $fpdi;
	  $this->filename = $filename;

        parent::pdf_parser($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);
    }
Пример #4
0
 /**
  * Get PDF-Version
  *
  * And reset the PDF Version used in FPDI if needed
  */
 function getPDFVersion()
 {
     parent::getPDFVersion();
     $this->fpdi->PDFVersion = max($this->fpdi->PDFVersion, $this->pdfVersion);
 }
Пример #5
0
 /**
  * Get PDF-Version
  *
  * And reset the PDF Version used in FPDI if needed
  */
 function getPDFVersion()
 {
     parent::getPDFVersion();
     $this->fpdi->setPDFVersion(max($this->fpdi->getPDFVersion(), $this->pdfVersion));
 }