Browse Source

Release 1.12.7

master
Jesper Ek 10 years ago
parent
commit
a9eba88484
  1. 15
      library/Zend/Pdf.php

15
library/Zend/Pdf.php

@ -95,8 +95,6 @@ class Zend_Pdf
*/ */
const PDF_HEADER = "%PDF-1.4\n%\xE2\xE3\xCF\xD3\n"; const PDF_HEADER = "%PDF-1.4\n%\xE2\xE3\xCF\xD3\n";
/** /**
* Pages collection * Pages collection
* *
@ -299,12 +297,12 @@ class Zend_Pdf
* *
* If $source is a string and $load is true, then it loads document * If $source is a string and $load is true, then it loads document
* from a file. * from a file.
* $revision used to roll back document to specified version * $revision used to roll back document to specified version
* (0 - current version, 1 - previous version, 2 - ...) * (0 - current version, 1 - previous version, 2 - ...)
* *
* @param string $source - PDF file to load * @param string $source - PDF file to load
* @param integer $revision * @param integer $revision
* @param bool $load
* @throws Zend_Pdf_Exception * @throws Zend_Pdf_Exception
* @return Zend_Pdf * @return Zend_Pdf
*/ */
@ -442,12 +440,12 @@ class Zend_Pdf
$this->_loadPages($this->_trailer->Root->Pages); $this->_loadPages($this->_trailer->Root->Pages);
} }
/** /**
* Load pages recursively * Load pages recursively
* *
* @param Zend_Pdf_Element_Reference $pages * @param Zend_Pdf_Element_Reference $pages
* @param array|null $attributes * @param array|null $attributes
* @throws Zend_Pdf_Exception
*/ */
protected function _loadPages(Zend_Pdf_Element_Reference $pages, $attributes = array()) protected function _loadPages(Zend_Pdf_Element_Reference $pages, $attributes = array())
{ {
@ -536,6 +534,7 @@ class Zend_Pdf
* Load outlines recursively * Load outlines recursively
* *
* @param Zend_Pdf_Element_Reference $root Document catalog entry * @param Zend_Pdf_Element_Reference $root Document catalog entry
* @throws Zend_Pdf_Exception
*/ */
protected function _loadOutlines(Zend_Pdf_Element_Reference $root) protected function _loadOutlines(Zend_Pdf_Element_Reference $root)
{ {
@ -917,7 +916,8 @@ class Zend_Pdf
* Set specified named destination * Set specified named destination
* *
* @param string $name * @param string $name
* @param Zend_Pdf_Destination_Explicit|Zend_Pdf_Action_GoTo $target
* @param Zend_Pdf_Destination_Explicit|Zend_Pdf_Action_GoTo $destination
* @throws Zend_Pdf_Exception
*/ */
public function setNamedDestination($name, $destination = null) public function setNamedDestination($name, $destination = null)
{ {
@ -976,7 +976,7 @@ class Zend_Pdf
* Returns Zend_Pdf_Page page object or null if destination is not found within PDF document. * Returns Zend_Pdf_Page page object or null if destination is not found within PDF document.
* *
* @param Zend_Pdf_Destination $destination Destination to resolve * @param Zend_Pdf_Destination $destination Destination to resolve
* @param boolean $refreshPagesHash Refresh page collection hashes before processing
* @param bool $refreshPageCollectionHashes Refresh page collection hashes before processing
* @return Zend_Pdf_Page|null * @return Zend_Pdf_Page|null
* @throws Zend_Pdf_Exception * @throws Zend_Pdf_Exception
*/ */
@ -1034,7 +1034,7 @@ class Zend_Pdf
* @todo Give appropriate name and make method public * @todo Give appropriate name and make method public
* *
* @param Zend_Pdf_Action $action * @param Zend_Pdf_Action $action
* @param boolean $refreshPagesHash Refresh page collection hashes before processing
* @param bool $refreshPageCollectionHashes Refresh page collection hashes before processing
* @return Zend_Pdf_Action|null * @return Zend_Pdf_Action|null
*/ */
protected function _cleanUpAction(Zend_Pdf_Action $action, $refreshPageCollectionHashes = true) protected function _cleanUpAction(Zend_Pdf_Action $action, $refreshPageCollectionHashes = true)
@ -1129,6 +1129,7 @@ class Zend_Pdf
* *
* $fontName should be specified in UTF-8 encoding * $fontName should be specified in UTF-8 encoding
* *
* @param string $fontName
* @return Zend_Pdf_Resource_Font_Extracted|null * @return Zend_Pdf_Resource_Font_Extracted|null
* @throws Zend_Pdf_Exception * @throws Zend_Pdf_Exception
*/ */

Loading…
Cancel
Save