Pdf/Destination/FitRectangle.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Pdf  
Subpackage
Destination  
Version
$Id$  

\Zend_Pdf_Destination_FitRectangle

Package: Zend_Pdf\Destination
Zend_Pdf_Destination_FitRectangle explicit detination
Destination array: [page /FitR left bottom right top] Display the page designated by page, with its contents magnified just enough to fit the rectangle specified by the coordinates left, bottom, right, and top entirely within the window both horizontally and vertically. If the required horizontal and vertical magnification factors are different, use the smaller of the two, centering the rectangle within the window in the other dimension.
Parent(s)
\Zend_Pdf_Destination_Explicit < \Zend_Pdf_Destination < \Zend_Pdf_Target
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Methods

methodpubliccreate(\Zend_Pdf_Page | integer $page, float $left, float $bottom, float $right, float $top) : \Zend_Pdf_Destination_FitRectangle
static

Create destination object

Parameters
NameTypeDescription
$page\Zend_Pdf_Page | integer

Page object or page number

$leftfloat

Left edge of displayed page

$bottomfloat

Bottom edge of displayed page

$rightfloat

Right edge of displayed page

$topfloat

Top edge of displayed page

Returns
TypeDescription
\Zend_Pdf_Destination_FitRectangle
Throws
ExceptionDescription
\Zend_Pdf_Exception
methodpublicgetBottomEdge() : float

Get bottom edge of the displayed page

Returns
TypeDescription
float
methodpublicgetLeftEdge() : float

Get left edge of the displayed page

Returns
TypeDescription
float
methodpublicgetRightEdge() : float

Get right edge of the displayed page

Returns
TypeDescription
float
methodpublicgetTopEdge() : float

Get top edge of the displayed page

Returns
TypeDescription
float
methodpublicsetBottomEdge(float $bottom) : \Zend_Pdf_Action_FitRectangle

Set bottom edge of the displayed page

Parameters
NameTypeDescription
$bottomfloat
Returns
TypeDescription
\Zend_Pdf_Action_FitRectangle
methodpublicsetLeftEdge(float $left) : \Zend_Pdf_Action_FitRectangle

Set left edge of the displayed page

Parameters
NameTypeDescription
$leftfloat
Returns
TypeDescription
\Zend_Pdf_Action_FitRectangle
methodpublicsetRightEdge(float $right) : \Zend_Pdf_Action_FitRectangle

Set right edge of the displayed page

Parameters
NameTypeDescription
$rightfloat
Returns
TypeDescription
\Zend_Pdf_Action_FitRectangle
methodpublicsetTopEdge(float $top) : \Zend_Pdf_Action_FitRectangle

Set top edge of the displayed page

Parameters
NameTypeDescription
$topfloat
Returns
TypeDescription
\Zend_Pdf_Action_FitRectangle
Documentation was generated by phpDocumentor 2.2.0 .