Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
zendframework1
library
Zend
Pdf
Destination
Fit.php
Go to the documentation of this file.
1
<?php
25
#require_once 'Zend/Pdf/Element/Array.php';
26
#require_once 'Zend/Pdf/Element/Name.php';
27
#require_once 'Zend/Pdf/Element/Numeric.php';
28
29
31
#require_once 'Zend/Pdf/Destination/Explicit.php';
32
49
class
Zend_Pdf_Destination_Fit
extends
Zend_Pdf_Destination_Explicit
50
{
58
public
static
function
create
(
$page
)
59
{
60
$destinationArray =
new
Zend_Pdf_Element_Array
();
61
62
if
(
$page
instanceof
Zend_Pdf_Page
) {
63
$destinationArray->items[] =
$page
->getPageDictionary();
64
}
else
if
(is_integer(
$page
)) {
65
$destinationArray->items[] =
new
Zend_Pdf_Element_Numeric
(
$page
);
66
}
else
{
67
#require_once 'Zend/Pdf/Exception.php';
68
throw
new
Zend_Pdf_Exception
(
'Page entry must be a Zend_Pdf_Page object or a page number.'
);
69
}
70
71
$destinationArray->items[] =
new
Zend_Pdf_Element_Name
(
'Fit'
);
72
73
return
new
Zend_Pdf_Destination_Fit
($destinationArray);
74
}
75
}
Zend_Pdf_Destination_Fit\create
static create($page)
Definition:
Fit.php:58
Zend_Pdf_Page
Definition:
Page.php:44
Zend_Pdf_Destination_Explicit
Definition:
Explicit.php:39
Zend_Pdf_Element_Array
Definition:
Array.php:35
Zend_Pdf_Element_Numeric
Definition:
Numeric.php:35
Zend_Pdf_Destination_Fit
Definition:
Fit.php:49
$page
$page
Definition:
pages.php:8
Zend_Pdf_Exception
Definition:
Exception.php:51
Zend_Pdf_Element_Name
Definition:
Name.php:35