diff --git a/CHANGELOG.TXT b/CHANGELOG.TXT index 6fd6911..8eac585 100644 --- a/CHANGELOG.TXT +++ b/CHANGELOG.TXT @@ -1,3 +1,6 @@ +6.0.062 (2014-03-02) + - The method startLayer() now accepts the NULL value for the $print parameter to not set the print layer option. + 6.0.061 (2014-02-18) - Bug #893 "Parsing error on streamed xref for secured pdf" was fixed. diff --git a/README.TXT b/README.TXT index 18f5ab0..7387366 100644 --- a/README.TXT +++ b/README.TXT @@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076 ------------------------------------------------------------ Name: TCPDF -Version: 6.0.061 -Release date: 2014-02-18 +Version: 6.0.062 +Release date: 2014-03-02 Author: Nicola Asuni Copyright (c) 2002-2014: diff --git a/composer.json b/composer.json index 75abed8..0727403 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "tecnick.com/tcpdf", - "version": "6.0.061", + "version": "6.0.062", "homepage": "http://www.tcpdf.org/", "type": "library", "description": "TCPDF is a PHP class for generating PDF documents.", diff --git a/include/tcpdf_static.php b/include/tcpdf_static.php index 06ea3e4..faafdba 100644 --- a/include/tcpdf_static.php +++ b/include/tcpdf_static.php @@ -55,7 +55,7 @@ class TCPDF_STATIC { * Current TCPDF version. * @private static */ - private static $tcpdf_version = '6.0.061'; + private static $tcpdf_version = '6.0.062'; /** * String alias for total number of pages. diff --git a/tcpdf.php b/tcpdf.php index abee86e..74acb26 100644 --- a/tcpdf.php +++ b/tcpdf.php @@ -13658,7 +13658,9 @@ class TCPDF { $out = '<< /Type /OCG'; $out .= ' /Name '.$this->_textstring($layer['name'], $this->pdflayers[$key]['objid']); $out .= ' /Usage <<'; - $out .= ' /Print <>'; + if (isset($layer['print']) AND ($layer['print'] !== NULL)) { + $out .= ' /Print <>'; + } $out .= ' /View <>'; $out .= ' >> >>'; $out .= "\n".'endobj'; @@ -13669,7 +13671,7 @@ class TCPDF { /** * Start a new pdf layer. * @param $name (string) Layer name (only a-z letters and numbers). Leave empty for automatic name. - * @param $print (boolean) Set to true to print this layer. + * @param $print (boolean|null) Set to TRUE to print this layer, FALSE to not print and NULL to not set this option * @param $view (boolean) Set to true to view this layer. * @public * @since 5.9.102 (2011-07-13)