diff --git a/CHANGELOG.TXT b/CHANGELOG.TXT index 1d9ca45..28bc5aa 100755 --- a/CHANGELOG.TXT +++ b/CHANGELOG.TXT @@ -1,3 +1,7 @@ +5.9.112 (2011-08-18) + - A newline character was added after the 'trailer' keyword for compatibility with some parsers. + - Support for layers was improved. + 5.9.111 (2011-08-17) - Barcode CODE 39 default gap was restored at 1. @@ -12,7 +16,7 @@ - A bug on PHP4 version was fixed. 5.9.107 (2011-08-08) - - THis version includes a minor bugfix. + - This version includes a minor bugfix. 5.9.106 (2011-08-04) - This version includes transparency groups: check the new parameter on startTemplate() method and example 62. diff --git a/README.TXT b/README.TXT index c9c4eb9..bf39ac1 100755 --- a/README.TXT +++ b/README.TXT @@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076 ------------------------------------------------------------ Name: TCPDF -Version: 5.9.111 -Release date: 2011-08-17 +Version: 5.9.112 +Release date: 2011-08-18 Author: Nicola Asuni Copyright (c) 2002-2011: diff --git a/tcpdf.php b/tcpdf.php index aedb5e4..d55ff77 100755 --- a/tcpdf.php +++ b/tcpdf.php @@ -1,9 +1,9 @@ * @package com.tecnick.tcpdf * @author Nicola Asuni - * @version 5.9.111 + * @version 5.9.112 */ // Main configuration file. Define the K_TCPDF_EXTERNAL_CONFIG constant to skip this file. @@ -148,7 +148,7 @@ require_once(dirname(__FILE__).'/config/tcpdf_config.php'); * TCPDF project (http://www.tcpdf.org) has been originally derived in 2002 from the Public Domain FPDF class by Olivier Plathey (http://www.fpdf.org), but now is almost entirely rewritten.
* @package com.tecnick.tcpdf * @brief PHP class for generating PDF documents without requiring external extensions. - * @version 5.9.111 + * @version 5.9.112 * @author Nicola Asuni - info@tecnick.com */ class TCPDF { @@ -159,7 +159,7 @@ class TCPDF { * Current TCPDF version. * @private */ - private $tcpdf_version = '5.9.111'; + private $tcpdf_version = '5.9.112'; // Protected properties @@ -11188,12 +11188,23 @@ class TCPDF { } } $out .= ' /OCProperties << /OCGs ['.$lyrobjs.']'; - $out .= ' /D << /ON ['.$lyrobjs_print.']'; + $out .= ' /D <<'; + $out .= ' /Name '.$this->_textstring('Layers', $oid); + $out .= ' /Creator '.$this->_textstring('TCPDF', $oid); + $out .= ' /BaseState /ON'; + $out .= ' /ON ['.$lyrobjs_print.']'; $out .= ' /OFF ['.$lyrobjs_view.']'; + $out .= ' /Intent /View'; $out .= ' /AS ['; - $out .= '<< /Event /Print /OCGs ['.$lyrobjs.'] /Category [/Print] >> << /Event /View /OCGs ['.$lyrobjs.'] /Category [/View] >>'; + $out .= ' << /Event /Print /OCGs ['.$lyrobjs.'] /Category [/Print] >>'; + $out .= ' << /Event /View /OCGs ['.$lyrobjs.'] /Category [/View] >>'; $out .= ' ]'; - $out .= ' >> >>'; + $out .= ' /Order ['.$lyrobjs.']'; + $out .= ' /ListMode /AllPages'; + //$out .= ' /RBGroups ['..']'; + //$out .= ' /Locked ['..']'; + $out .= ' >>'; + $out .= ' >>'; } // AcroForm if (!empty($this->form_obj_id) OR ($this->sign AND isset($this->signature_data['cert_type']))) { @@ -11405,7 +11416,8 @@ class TCPDF { $this->_out(sprintf('%010d 00000 n ', $this->offsets[$i])); } // TRAILER - $out = 'trailer <<'; + $out = 'trailer'."\n"; + $out .= '<<'; $out .= ' /Size '.($this->n + 1); $out .= ' /Root '.$objid_catalog.' 0 R'; $out .= ' /Info '.$objid_info.' 0 R';