classTCPDF__STATIC

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.

Static Public Member Functions

static getTCPDFVersion ()
 
static getTCPDFProducer ()
 
static set_mqr ($mqr)
 
static get_mqr ()
 
static isValidURL ($url)
 
static removeSHY ($txt=“, $unicode=true)
 
static getBorderMode ($brd, $position=‘start’, $opencell=true)
 
static empty_string ($str)
 
static getObjFilename ($type=‘tmp’, $file_id=“)
 
static _escape ($s)
 
static _escapeXML ($str)
 
static objclone ($object)
 
static sendOutputData ($data, $length)
 
static replacePageNumAliases ($page, $replace, $diff=0)
 
static getTimestamp ($date)
 
static getFormattedDate ($time)
 
static getRandomSeed ($seed=“)
 
static _md5_16 ($str)
 
static _AES ($key, $text)
 
static _AESnopad ($key, $text)
 
static _RC4 ($key, $text, &$last_enc_key, &$last_enc_key_c)
 
static getUserPermissionCode ($permissions, $mode=0)
 
static convertHexStringToString ($bs)
 
static convertStringToHexString ($s)
 
static getEncPermissionsString ($protection)
 
static encodeNameObject ($name)
 
static getAnnotOptFromJSProp ($prop, &$spot_colors, $rtl=false)
 
static formatPageNumber ($num)
 
static formatTOCPageNumber ($num)
 
static extractCSSproperties ($cssdata)
 
static fixHTMLCode ($html, $default_css=“, $tagvs=”, $tidy_options=“, &$tagvspaces)
 
static isValidCSSSelectorForTag ($dom, $key, $selector)
 
static getCSSdataArray ($dom, $key, $css)
 
static getTagStyleFromCSSarray ($css)
 
static intToRoman ($number)
 
static revstrpos ($haystack, $needle, $offset=0)
 
static getHyphenPatternsFromTEX ($file)
 
static getPathPaintOperator ($style, $default=’S’)
 
static getTransformationMatrixProduct ($ta, $tb)
 
static getSVGTransformMatrix ($attribute)
 
static getVectorsAngle ($x1, $y1, $x2, $y2)
 
static pregSplit ($pattern, $modifiers, $subject, $limit=NULL, $flags=NULL)
 
static fopenLocal ($filename, $mode)
 
static fileGetContents ($file)
 
static _getULONG ($str, $offset)
 
static _getUSHORT ($str, $offset)
 
static _getSHORT ($str, $offset)
 
static _getFWORD ($str, $offset)
 
static _getUFWORD ($str, $offset)
 
static _getFIXED ($str, $offset)
 
static _getBYTE ($str, $offset)
 
static rfread ($handle, $length)
 
static _freadint ($f)
 
static getPageSizeFromFormat ($format)
 
static setPageBoxes ($page, $type, $llx, $lly, $urx, $ury, $points=false, $k, $pagedim=array())
 
static swapPageBoxCoordinates ($page, $pagedim)
 
static getPageLayoutMode ($layout=‘SinglePage’)
 
static getPageMode ($mode=‘UseNone’)
 

Static Public Attributes

static $alias_tot_pages = ‘{:ptp:}’
 
static $alias_num_page = ‘{:pnp:}’
 
static $alias_group_tot_pages = ‘{:ptg:}’
 
static $alias_group_num_page = ‘{:png:}’
 
static $alias_right_shift = ‘{rsc:’
 
static $enc_padding = "\x28\xBF\x4E\x5E\x4E\x75\x8A\x41\x64\x00\x4E\x56\xFF\xFA\x01\x08\x2E\x2E\x00\xB6\xD0\x68\x3E\x80\x2F\x0C\xA9\xFE\x64\x53\x69\x7A"
 
static $byterange_string = ‘/ByteRange[0 ********** ********** **********]’
 
static $pageboxes = array(‘MediaBox’, ‘CropBox’, ‘BleedBox’, ‘TrimBox’, ‘ArtBox’)
 
static $page_formats
 

Static Private Attributes

static $tcpdf_version = ‘6.2.12’
 

Detailed Description

Static methods used by the TCPDF class.

Member Function Documentation

static TCPDF_STATIC::_AES (   $key,
  $text 
)
static

Returns the input text exrypted using AES algorithm and the specified key. This method requires openssl or mcrypt. Text is padded to 16bytes blocks

Parameters
$key(string) encryption key
$text(String) input text to be encrypted
Returns
String encrypted text
Author
Nicola Asuni
Since
5.0.005 (2010-05-11) static

static TCPDF_STATIC::_AESnopad (   $key,
  $text 
)
static

Returns the input text exrypted using AES algorithm and the specified key. This method requires openssl or mcrypt. Text is not padded

Parameters
$key(string) encryption key
$text(String) input text to be encrypted
Returns
String encrypted text
Author
Nicola Asuni
Since
TODO static

static TCPDF_STATIC::_escape (   $s)
static

Add “\” before “\“, “(” and “)”

Parameters
$s(string) string to escape.
Returns
string escaped string. static

static TCPDF_STATIC::_escapeXML (   $str)
static

Escape some special characters (< > &) for XML output.

Parameters
$str(string) Input string to convert.
Returns
converted string
Since
5.9.121 (2011-09-28) static

static TCPDF_STATIC::_freadint (   $f)
static

Read a 4-byte (32 bit) integer from file.

Parameters
$f(string) file name.
Returns
4-byte integer static

static TCPDF_STATIC::_getBYTE (   $str,
  $offset 
)
static

Get BYTE from string (8-bit unsigned integer).

Parameters
$str(string) String from where to extract value.
$offset(int) Point from where to read the data.
Returns
int 8 bit value
Author
Nicola Asuni
Since
5.2.000 (2010-06-02) static

static TCPDF_STATIC::_getFIXED (   $str,
  $offset 
)
static

Get FIXED from string (32-bit signed fixed-point number (16.16).

Parameters
$str(string) string from where to extract value
$offset(int) point from where to read the data
Returns
int 16 bit value
Author
Nicola Asuni
Since
5.9.123 (2011-09-30) static

static TCPDF_STATIC::_getFWORD (   $str,
  $offset 
)
static

Get FWORD from string (Big Endian 16-bit signed integer).

Parameters
$str(string) String from where to extract value.
$offset(int) Point from where to read the data.
Returns
int 16 bit value
Author
Nicola Asuni
Since
5.9.123 (2011-09-30) static

static TCPDF_STATIC::_getSHORT (   $str,
  $offset 
)
static

Get SHORT from string (Big Endian 16-bit signed integer).

Parameters
$str(string) String from where to extract value.
$offset(int) Point from where to read the data.
Returns
int 16 bit value
Author
Nicola Asuni
Since
5.2.000 (2010-06-02) static

static TCPDF_STATIC::_getUFWORD (   $str,
  $offset 
)
static

Get UFWORD from string (Big Endian 16-bit unsigned integer).

Parameters
$str(string) string from where to extract value
$offset(int) point from where to read the data
Returns
int 16 bit value
Author
Nicola Asuni
Since
5.9.123 (2011-09-30) static

static TCPDF_STATIC::_getULONG (   $str,
  $offset 
)
static

Get ULONG from string (Big Endian 32-bit unsigned integer).

Parameters
$str(string) string from where to extract value
$offset(int) point from where to read the data
Returns
int 32 bit value
Author
Nicola Asuni
Since
5.2.000 (2010-06-02) static

static TCPDF_STATIC::_getUSHORT (   $str,
  $offset 
)
static

Get USHORT from string (Big Endian 16-bit unsigned integer).

Parameters
$str(string) string from where to extract value
$offset(int) point from where to read the data
Returns
int 16 bit value
Author
Nicola Asuni
Since
5.2.000 (2010-06-02) static

static TCPDF_STATIC::_md5_16 (   $str)
static

Encrypts a string using MD5 and returns it’s value as a binary string.

Parameters
$str(string) input string
Returns
String MD5 encrypted binary string
Since
2.0.000 (2008-01-02) static

static TCPDF_STATIC::_RC4 (   $key,
  $text,
$last_enc_key,
$last_enc_key_c 
)
static

Returns the input text encrypted using RC4 algorithm and the specified key. RC4 is the standard encryption algorithm used in PDF format

Parameters
$key(string) Encryption key.
$text(String) Input text to be encrypted.
$last_enc_key(String) Reference to last RC4 key encrypted.
$last_enc_key_c(String) Reference to last RC4 computed key.
Returns
String encrypted text
Since
2.0.000 (2008-01-02)
Author
Klemen Vodopivec, Nicola Asuni static

static TCPDF_STATIC::convertHexStringToString (   $bs)
static

Convert hexadecimal string to string

Parameters
$bs(string) byte-string to convert
Returns
String
Since
5.0.005 (2010-05-12)
Author
Nicola Asuni static

static TCPDF_STATIC::convertStringToHexString (   $s)
static

Convert string to hexadecimal string (byte string)

Parameters
$s(string) string to convert
Returns
byte string
Since
5.0.010 (2010-05-17)
Author
Nicola Asuni static

static TCPDF_STATIC::empty_string (   $str)
static

Determine whether a string is empty.

Parameters
$str(string) string to be checked
Returns
boolean true if string is empty
Since
4.5.044 (2009-04-16) static

static TCPDF_STATIC::encodeNameObject (   $name)
static

Encode a name object.

Parameters
$name(string) Name object to encode.
Returns
(string) Encoded name object.
Author
Nicola Asuni
Since
5.9.097 (2011-06-23) static

static TCPDF_STATIC::extractCSSproperties (   $cssdata)
static

Extracts the CSS properties from a CSS string.

Parameters
$cssdata(string) string containing CSS definitions.
Returns
An array where the keys are the CSS selectors and the values are the CSS properties.
Author
Nicola Asuni
Since
5.1.000 (2010-05-25) static

static TCPDF_STATIC::fileGetContents (   $file)
static

Reads entire file into a string. The file can be also an URL.

Parameters
$file(string) Name of the file or URL to read.
Returns
The function returns the read data or FALSE on failure.
Author
Nicola Asuni
Since
6.0.025 static

static TCPDF_STATIC::fixHTMLCode (   $html,
  $default_css = ,
  $tagvs = ,
  $tidy_options = ,
$tagvspaces 
)
static

Cleanup HTML code (requires HTML Tidy library).

Parameters
$html(string) htmlcode to fix
$default_css(string) CSS commands to add
$tagvs(array) parameters for setHtmlVSpace method
$tidy_options(array) options for tidy_parse_string function
$tagvspaces(array) Array of vertical spaces for tags.
Returns
string XHTML code cleaned up
Author
Nicola Asuni
Since
5.9.017 (2010-11-16)
See also
setHtmlVSpace() static

static TCPDF_STATIC::fopenLocal (   $filename,
  $mode 
)
static

Wrapper to use fopen only with local files

Parameters
filename(string) Name of the file to open
$mode(string)
Returns
Returns a file pointer resource on success, or FALSE on error. static

static TCPDF_STATIC::formatPageNumber (   $num)
static

Format the page numbers. This method can be overriden for custom formats.

Parameters
$num(int) page number
Since
4.2.005 (2008-11-06) static

static TCPDF_STATIC::formatTOCPageNumber (   $num)
static

Format the page numbers on the Table Of Content. This method can be overriden for custom formats.

Parameters
$num(int) page number
Since
4.5.001 (2009-01-04)
See also
addTOC(), addHTMLTOC() static

static TCPDF_STATIC::get_mqr ( )
static

Gets the current active configuration setting of magic_quotes_runtime (if the get_magic_quotes_runtime function exist)

Returns
Returns 0 if magic quotes runtime is off or get_magic_quotes_runtime doesn’t exist, 1 otherwise.
Since
4.6.025 (2009-08-17) static

static TCPDF_STATIC::getAnnotOptFromJSProp (   $prop,
$spot_colors,
  $rtl = false 
)
static

Convert JavaScript form fields properties array to Annotation Properties array.

Parameters
$prop(array) javascript field properties. Possible values are described on official Javascript for Acrobat API reference.
$spot_colors(array) Reference to spot colors array.
$rtl(boolean) True if in Right-To-Left text direction mode, false otherwise.
Returns
array of annotation properties
Author
Nicola Asuni
Since
4.8.000 (2009-09-06) static

static TCPDF_STATIC::getBorderMode (   $brd,
  $position = ‘start’,
  $opencell = true 
)
static

Get the border mode accounting for multicell position (opens bottom side of multicell crossing pages)

Parameters
$brd(mixed) Indicates if borders must be drawn around the cell block. The value can be a number:
  • 0: no border (default)
  • 1: frame
or a string containing some or all of the following characters (in any order):
  • L: left
  • T: top
  • R: right
  • B: bottom
or an array of line styles for each border group: array(‘LTRB’ => array(‘width’ => 2, ‘cap’ => ‘butt’, ‘join’ => ‘miter’, ‘dash’ => 0, ‘color’ => array(0, 0, 0)))
$position(string) multicell position: ‘start’, ‘middle’, ‘end’
$opencell(boolean) True when the cell is left open at the page bottom, false otherwise.
Returns
border mode array
Since
4.4.002 (2008-12-09) static

static TCPDF_STATIC::getCSSdataArray (   $dom,
  $key,
  $css 
)
static

Returns the styles array that apply for the selected HTML tag.

Parameters
$dom(array) array of HTML tags and properties
$key(int) key of the current HTML tag
$css(array) array of CSS properties
Returns
array containing CSS properties
Since
5.1.000 (2010-05-25) static

static TCPDF_STATIC::getEncPermissionsString (   $protection)
static

Convert encryption P value to a string of bytes, low-order byte first.

Parameters
$protection(string) 32bit encryption permission value (P value)
Returns
String
Since
5.0.005 (2010-05-12)
Author
Nicola Asuni static

static TCPDF_STATIC::getFormattedDate (   $time)
static

Returns a formatted date-time.

Parameters
$time(int) Time in seconds.
Returns
string escaped date string.
Since
5.9.152 (2012-03-23) static

static TCPDF_STATIC::getHyphenPatternsFromTEX (   $file)
static

Returns an array of hyphenation patterns.

Parameters
$file(string) TEX file containing hypenation patterns. TEX pattrns can be downloaded from http://www.ctan.org/tex-archive/language/hyph-utf8/tex/generic/hyph-utf8/patterns/
Returns
array of hyphenation patterns
Author
Nicola Asuni
Since
4.9.012 (2010-04-12) static

static TCPDF_STATIC::getObjFilename (   $type = ‘tmp’,
  $file_id =  
)
static

Returns a temporary filename for caching object on filesystem.

Parameters
$type(string) Type of file (name of the subdir on the tcpdf cache folder).
$file_id(string) TCPDF file_id.
Returns
string filename.
Since
4.5.000 (2008-12-31) static

static TCPDF_STATIC::getPageLayoutMode (   $layout = ‘SinglePage’)
static

Get the canonical page layout mode.

Parameters
$layout(string) The page layout. Possible values are:
  • SinglePage Display one page at a time
  • OneColumn Display the pages in one column
  • TwoColumnLeft Display the pages in two columns, with odd-numbered pages on the left
  • TwoColumnRight Display the pages in two columns, with odd-numbered pages on the right
  • TwoPageLeft (PDF 1.5) Display the pages two at a time, with odd-numbered pages on the left
  • TwoPageRight (PDF 1.5) Display the pages two at a time, with odd-numbered pages on the right
Returns
(string) Canonical page layout name. static

static TCPDF_STATIC::getPageMode (   $mode = ‘UseNone’)
static

Get the canonical page layout mode.

Parameters
$mode(string) A name object specifying how the document should be displayed when opened:
  • UseNone Neither document outline nor thumbnail images visible
  • UseOutlines Document outline visible
  • UseThumbs Thumbnail images visible
  • FullScreen Full-screen mode, with no menu bar, window controls, or any other window visible
  • UseOC (PDF 1.5) Optional content group panel visible
  • UseAttachments (PDF 1.6) Attachments panel visible
Returns
(string) Canonical page mode name. static

static TCPDF_STATIC::getPageSizeFromFormat (   $format)
static

Get page dimensions from format name.

Parameters
$format(mixed) The format name
See also
self::$page_format<ul>
Returns
array containing page width and height in points
Since
5.0.010 (2010-05-17) static

static TCPDF_STATIC::getPathPaintOperator (   $style,
  $default = ’S’ 
)
static

Get the Path-Painting Operators.

Parameters
$style(string) Style of rendering. Possible values are:
  • S or D: Stroke the path.
  • s or d: Close and stroke the path.
  • f or F: Fill the path, using the nonzero winding number rule to determine the region to fill.
  • f* or F: Fill the path, using the even-odd rule to determine the region to fill.
  • B or FD or DF: Fill and then stroke the path, using the nonzero winding number rule to determine the region to fill.
  • B or FD or DF: Fill and then stroke the path, using the even-odd rule to determine the region to fill.
  • b or fd or df: Close, fill, and then stroke the path, using the nonzero winding number rule to determine the region to fill.
  • b or fd or df: Close, fill, and then stroke the path, using the even-odd rule to determine the region to fill.
  • CNZ: Clipping mode using the even-odd rule to determine which regions lie inside the clipping path.
  • CEO: Clipping mode using the nonzero winding number rule to determine which regions lie inside the clipping path
  • n: End the path object without filling or stroking it.
$default(string) default style
Author
Nicola Asuni
Since
5.0.000 (2010-04-30) static

static TCPDF_STATIC::getRandomSeed (   $seed = )
static

Returns a string containing random data to be used as a seed for encryption methods.

Parameters
$seed(string) starting seed value
Returns
string containing random data
Author
Nicola Asuni
Since
5.9.006 (2010-10-19) static

static TCPDF_STATIC::getSVGTransformMatrix (   $attribute)
static

Get the tranformation matrix from SVG transform attribute

Parameters
$attribute(string) transformation
Returns
array of transformations
Author
Nicola Asuni
Since
5.0.000 (2010-05-02) static

static TCPDF_STATIC::getTagStyleFromCSSarray (   $css)
static

Compact CSS data array into single string.

Parameters
$css(array) array of CSS properties
Returns
string containing merged CSS properties
Since
5.9.070 (2011-04-19) static

static TCPDF_STATIC::getTCPDFProducer ( )
static

Return the current TCPDF producer.

Returns
TCPDF producer string
Since
6.0.000 (2013-03-16) static

static TCPDF_STATIC::getTCPDFVersion ( )
static

Return the current TCPDF version.

Returns
TCPDF version string
Since
5.9.012 (2010-11-10) static

static TCPDF_STATIC::getTimestamp (   $date)
static

Returns timestamp in seconds from formatted date-time.

Parameters
$date(string) Formatted date-time.
Returns
int seconds.
Since
5.9.152 (2012-03-23) static

static TCPDF_STATIC::getTransformationMatrixProduct (   $ta,
  $tb 
)
static

Get the product of two SVG tranformation matrices

Parameters
$ta(array) first SVG tranformation matrix
$tb(array) second SVG tranformation matrix
Returns
transformation array
Author
Nicola Asuni
Since
5.0.000 (2010-05-02) static

static TCPDF_STATIC::getUserPermissionCode (   $permissions,
  $mode = 0 
)
static

Return the permission code used on encryption (P value).

Parameters
$permissions(Array) the set of permissions (specify the ones you want to block).
$mode(int) encryption strength: 0 = RC4 40 bit; 1 = RC4 128 bit; 2 = AES 128 bit; 3 = AES 256 bit.
Since
5.0.005 (2010-05-12)
Author
Nicola Asuni static

static TCPDF_STATIC::getVectorsAngle (   $x1,
  $y1,
  $x2,
  $y2 
)
static

Returns the angle in radiants between two vectors

Parameters
$x1(int) X coordinate of first vector point
$y1(int) Y coordinate of first vector point
$x2(int) X coordinate of second vector point
$y2(int) Y coordinate of second vector point
Author
Nicola Asuni
Since
5.0.000 (2010-05-04) static

static TCPDF_STATIC::intToRoman (   $number)
static

Returns the Roman representation of an integer number

Parameters
$number(int) number to convert
Returns
string roman representation of the specified number
Since
4.4.004 (2008-12-10) static

static TCPDF_STATIC::isValidCSSSelectorForTag (   $dom,
  $key,
  $selector 
)
static

Returns true if the CSS selector is valid for the selected HTML tag

Parameters
$dom(array) array of HTML tags and properties
$key(int) key of the current HTML tag
$selector(string) CSS selector string
Returns
true if the selector is valid, false otherwise
Since
5.1.000 (2010-05-25) static

static TCPDF_STATIC::isValidURL (   $url)
static

Check if the URL exist.

Parameters
$url(string) URL to check.
Returns
Boolean true if the URl exist, false otherwise.
Since
5.9.204 (2013-01-28) static

static TCPDF_STATIC::objclone (   $object)
static

Creates a copy of a class object

Parameters
$object(object) class object to be cloned
Returns
cloned object
Since
4.5.029 (2009-03-19) static

static TCPDF_STATIC::pregSplit (   $pattern,
  $modifiers,
  $subject,
  $limit = NULL,
  $flags = NULL 
)
static

Split string by a regular expression. This is a wrapper for the preg_split function to avoid the bug: https://bugs.php.net/bug.php?id=45850

Parameters
$pattern(string) The regular expression pattern to search for without the modifiers, as a string.
$modifiers(string) The modifiers part of the pattern,
$subject(string) The input string.
$limit(int) If specified, then only substrings up to limit are returned with the rest of the string being placed in the last substring. A limit of -1, 0 or NULL means “no limit” and, as is standard across PHP, you can use NULL to skip to the flags parameter.
$flags(int) The flags as specified on the preg_split PHP function.
Returns
Returns an array containing substrings of subject split along boundaries matched by pattern.modifier
Author
Nicola Asuni
Since
6.0.023 static

static TCPDF_STATIC::removeSHY (   $txt = ,
  $unicode = true 
)
static

Removes SHY characters from text. Unicode Data:

  • Name : SOFT HYPHEN, commonly abbreviated as SHY
  • HTML Entity (decimal): “&amp;#173;”
  • HTML Entity (hex): “&amp;#xad;”
  • HTML Entity (named): “&amp;shy;”
  • How to type in Microsoft Windows: [Alt +00AD] or [Alt 0173]
  • UTF-8 (hex): 0xC2 0xAD (c2ad)
  • UTF-8 character: chr(194).chr(173)
Parameters
$txt(string) input string
$unicode(boolean) True if we are in unicode mode, false otherwise.
Returns
string without SHY characters.
Since
(4.5.019) 2009-02-28 static

static TCPDF_STATIC::replacePageNumAliases (   $page,
  $replace,
  $diff = 0 
)
static

Replace page number aliases with number.

Parameters
$page(string) Page content.
$replace(array) Array of replacements (array keys are replacement strings, values are alias arrays).
$diff(int) If passed, this will be set to the total char number difference between alias and replacements.
Returns
replaced page content and updated $diff parameter as array. static

static TCPDF_STATIC::revstrpos (   $haystack,
  $needle,
  $offset = 0 
)
static

Find position of last occurrence of a substring in a string

Parameters
$haystack(string) The string to search in.
$needle(string) substring to search.
$offset(int) May be specified to begin searching an arbitrary number of characters into the string.
Returns
Returns the position where the needle exists. Returns FALSE if the needle was not found.
Since
4.8.038 (2010-03-13) static

static TCPDF_STATIC::rfread (   $handle,
  $length 
)
static

Binary-safe and URL-safe file read. Reads up to length bytes from the file pointer referenced by handle. Reading stops as soon as one of the following conditions is met: length bytes have been read; EOF (end of file) is reached.

Parameters
$handle(resource)
$length(int)
Returns
Returns the read string or FALSE in case of error.
Author
Nicola Asuni
Since
4.5.027 (2009-03-16) static

static TCPDF_STATIC::sendOutputData (   $data,
  $length 
)
static

Output input data and compress it if possible.

Parameters
$data(string) Data to output.
$length(int) Data length in bytes.
Since
5.9.086 static

static TCPDF_STATIC::set_mqr (   $mqr)
static

Sets the current active configuration setting of magic_quotes_runtime (if the set_magic_quotes_runtime function exist)

Parameters
$mqr(boolean) FALSE for off, TRUE for on.
Since
4.6.025 (2009-08-17) static

static TCPDF_STATIC::setPageBoxes (   $page,
  $type,
  $llx,
  $lly,
  $urx,
  $ury,
  $points = false,
  $k,
  $pagedim = array() 
)
static

Set page boundaries.

Parameters
$page(int) page number
$type(string) valid values are:
  • ‘MediaBox’ : the boundaries of the physical medium on which the page shall be displayed or printed;
  • ‘CropBox’ : the visible region of default user space;
  • ‘BleedBox’ : the region to which the contents of the page shall be clipped when output in a production environment;
  • ‘TrimBox’ : the intended dimensions of the finished page after trimming;
  • ‘ArtBox’ : the page’s meaningful content (including potential white space).
$llx(float) lower-left x coordinate in user units.
$lly(float) lower-left y coordinate in user units.
$urx(float) upper-right x coordinate in user units.
$ury(float) upper-right y coordinate in user units.
$points(boolean) If true uses user units as unit of measure, otherwise uses PDF points.
$k(float) Scale factor (number of points in user unit).
$pagedim(array) Array of page dimensions.
Returns
pagedim array of page dimensions.
Since
5.0.010 (2010-05-17) static

static TCPDF_STATIC::swapPageBoxCoordinates (   $page,
  $pagedim 
)
static

Swap X and Y coordinates of page boxes (change page boxes orientation).

Parameters
$page(int) page number
$pagedim(array) Array of page dimensions.
Returns
pagedim array of page dimensions.
Since
5.0.010 (2010-05-17) static

Member Data Documentation

TCPDF_STATIC::$alias_group_num_page = ‘{:png:}’
static

String alias for group page number. static

TCPDF_STATIC::$alias_group_tot_pages = ‘{:ptg:}’
static

String alias for total number of pages in a single group. static

TCPDF_STATIC::$alias_num_page = ‘{:pnp:}’
static

String alias for page number. static

TCPDF_STATIC::$alias_right_shift = ‘{rsc:’
static

String alias for right shift compensation used to correctly align page numbers on the right. static

TCPDF_STATIC::$alias_tot_pages = ‘{:ptp:}’
static

String alias for total number of pages. static

TCPDF_STATIC::$byterange_string = ‘/ByteRange[0 ********** ********** **********]’
static

ByteRange placemark used during digital signature process.

Since
4.6.028 (2009-08-25) static

TCPDF_STATIC::$enc_padding = "\x28\xBF\x4E\x5E\x4E\x75\x8A\x41\x64\x00\x4E\x56\xFF\xFA\x01\x08\x2E\x2E\x00\xB6\xD0\x68\x3E\x80\x2F\x0C\xA9\xFE\x64\x53\x69\x7A"
static

Encryption padding string. static

TCPDF_STATIC::$page_formats
static

Array of page formats measures are calculated in this way: (inches * 72) or (millimeters * 72 / 25.4) static

TCPDF_STATIC::$pageboxes = array(‘MediaBox’, ‘CropBox’, ‘BleedBox’, ‘TrimBox’, ‘ArtBox’)
static

Array page boxes names static

TCPDF_STATIC::$tcpdf_version = ‘6.2.12’
staticprivate

Current TCPDF version. static


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

 

© 2004-2017 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy