Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Static Public Member Functions
Zend_Pdf_Destination_FitVertically Class Reference
Inheritance diagram for Zend_Pdf_Destination_FitVertically:
Zend_Pdf_Destination_Explicit Zend_Pdf_Destination Zend_Pdf_Target

Public Member Functions

 getLeftEdge ()
 
 setLeftEdge ($left)
 
- Public Member Functions inherited from Zend_Pdf_Destination_Explicit
 __construct (Zend_Pdf_Element $destinationArray)
 
 isRemote ()
 
 getResource ()
 
- Public Member Functions inherited from Zend_Pdf_Target
 getResource ()
 

Static Public Member Functions

static create ($page, $left)
 
- Static Public Member Functions inherited from Zend_Pdf_Destination
static load (Zend_Pdf_Element $resource)
 
- Static Public Member Functions inherited from Zend_Pdf_Target
static load (Zend_Pdf_Element $resource)
 

Additional Inherited Members

- Protected Attributes inherited from Zend_Pdf_Destination_Explicit
 $_destinationArray
 
 $_isRemote
 

Detailed Description

Definition at line 47 of file FitVertically.php.

Member Function Documentation

◆ create()

static create (   $page,
  $left 
)
static

Create destination object

Parameters
Zend_Pdf_Page | integer$pagePage object or page number
float$leftLeft edge of displayed page
Returns
Zend_Pdf_Destination_FitVertically
Exceptions
Zend_Pdf_Exception

Definition at line 57 of file FitVertically.php.

58  {
59  $destinationArray = new Zend_Pdf_Element_Array();
60 
61  if ($page instanceof Zend_Pdf_Page) {
62  $destinationArray->items[] = $page->getPageDictionary();
63  } else if (is_integer($page)) {
64  $destinationArray->items[] = new Zend_Pdf_Element_Numeric($page);
65  } else {
66  #require_once 'Zend/Pdf/Exception.php';
67  throw new Zend_Pdf_Exception('Page entry must be a Zend_Pdf_Page object or page number.');
68  }
69 
70  $destinationArray->items[] = new Zend_Pdf_Element_Name('FitV');
71  $destinationArray->items[] = new Zend_Pdf_Element_Numeric($left);
72 
73  return new Zend_Pdf_Destination_FitVertically($destinationArray);
74  }
$page
Definition: pages.php:8

◆ getLeftEdge()

getLeftEdge ( )

Get left edge of the displayed page

Returns
float

Definition at line 81 of file FitVertically.php.

82  {
83  return $this->_destinationArray->items[2]->value;
84  }

◆ setLeftEdge()

setLeftEdge (   $left)

Set left edge of the displayed page

Parameters
float$left
Returns
Zend_Pdf_Action_FitVertically

Definition at line 92 of file FitVertically.php.

93  {
94  $this->_destinationArray->items[2] = new Zend_Pdf_Element_Numeric($left);
95 
96  return $this;
97  }

The documentation for this class was generated from the following file: