diff --git a/dev/dolibarr_changes.txt b/dev/dolibarr_changes.txt index f63969ea170..728ced44dca 100644 --- a/dev/dolibarr_changes.txt +++ b/dev/dolibarr_changes.txt @@ -23,6 +23,21 @@ Replace call to serialize_val with no bugged value +FPDI: +----- +Replace: + $this->_readXref($this->_xref, $this->_findXref()); +with: + try { + $this->_readXref($this->_xref, $this->_findXref()); + } + catch(Exception $e) + { + print $e->getMessage(); + exit; + } + + TCPDF: ------ * Removed all fonts except diff --git a/htdocs/includes/fpdfi/pdf_parser.php b/htdocs/includes/fpdfi/pdf_parser.php index a1c82dec23c..53c0372c8bd 100644 --- a/htdocs/includes/fpdfi/pdf_parser.php +++ b/htdocs/includes/fpdfi/pdf_parser.php @@ -199,7 +199,14 @@ class pdf_parser // Read xref-Data $this->_xref = array(); - $this->_readXref($this->_xref, $this->_findXref()); + try { + $this->_readXref($this->_xref, $this->_findXref()); + } + catch(Exception $e) + { + print $e->getMessage(); + exit; + } // Check for Encryption $this->getEncryption();