diff -r 000000000000 -r 4eba9c11703f web/Zend/Pdf/Destination/Fit.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/Zend/Pdf/Destination/Fit.php Mon Dec 13 18:29:26 2010 +0100 @@ -0,0 +1,75 @@ +items[] = $page->getPageDictionary(); + } else if (is_integer($page)) { + $destinationArray->items[] = new Zend_Pdf_Element_Numeric($page); + } else { + require_once 'Zend/Pdf/Exception.php'; + throw new Zend_Pdf_Exception('Page entry must be a Zend_Pdf_Page object or a page number.'); + } + + $destinationArray->items[] = new Zend_Pdf_Element_Name('Fit'); + + return new Zend_Pdf_Destination_Fit($destinationArray); + } +}