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.

Class Page


Extended by Com\Tecnick\Pdf\Page\Mode
Extended by Com\Tecnick\Pdf\Page\Box
Extended by Com\Tecnick\Pdf\Page\Settings
Extended by Com\Tecnick\Pdf\Page\Region
Extended by Com\Tecnick\Pdf\Page\Page
Namespace: Com\Tecnick\Pdf\Page
Package: PdfPage
Category: Library
Copyright: 2011-2015 Nicola Asuni - LTD
License: GNU-LGPL v3 (see LICENSE.TXT)
Author: Nicola Asuni
Since: 2011-05-23
Located at Page.php
Methods summary
# __construct( string $unit, Com\Tecnick\Color\Pdf $col, Com\Tecnick\Pdf\Encrypt\Encrypt $enc, boolean $pdfa = false, boolean $sigapp = false )

Initialize page data

public float
# getKUnit( )

Get the unit ratio

# enableSignatureApproval( boolean $sigapp )

Enable Signature Approval

public array
# add( array $data = array() )

Add a new page

public array
# delete( integer $idx )

Remove the specified page

public array
# pop( )

Remove and return last page

# move( integer $from, integer $new )

Move a page to a previous position

# getPages( )

Returns the array (stack) containing all pages data.

# getPage( integer $idx )

Returns the specified page data.

# setCurrentPage( integer $pid )

Set the current page number (move to the specified page)

public array
# getCurrentPage( )

Returns the last page array

# addContent( array $content )

Add page content

# popContent( array $data,… )

Remove and return last page content

# addContentMark( )

Add page content mark

# popContentToLastMark( )

Remove the last marked page content

public string
# getPdfPages( integer & $pon )

Returns the PDF command to output all page sections

# getResourceDictObjID( )

Returns the reserved Object ID for the Resource dictionary.

protected string
# getPageTransition( integer $page, string $content,… )

Returns the PDF command to output the page content.

protected string
# getAnnotationRef( array $page )

Get references to page annotations.

protected string
# getPageContentObj( integer & $pon, string $content = '' )

Returns the PDF command to output the page content.

protected string
# getPageRootObj( integer & $pon )

Returns the PDF command to output the page root object.

# replacePageTemplates( array $data )

Replace page templates and numbers

Methods inherited from Com\Tecnick\Pdf\Page\Region
checkRegionBreak(), enableAutoPageBreak(), getCurrentRegion(), getNextPage(), getNextRegion(), getX(), getY(), isAutoPageBreakEnabled(), isXOutRegion(), isYOutRegion(), selectRegion(), setX(), setY()
Methods inherited from Com\Tecnick\Pdf\Page\Settings
sanitizeAnnotRefs(), sanitizeBoxData(), sanitizeContent(), sanitizeGroup(), sanitizeMargins(), sanitizePageFormat(), sanitizePageNumber(), sanitizeRegions(), sanitizeRotation(), sanitizeTime(), sanitizeTransitions(), sanitizeZoom()
Methods inherited from Com\Tecnick\Pdf\Page\Box
getBox(), getBoxColorInfo(), setBox(), setPageBoxes(), swapCoordinates()
Methods inherited from Com\Tecnick\Pdf\Page\Mode
getDisplay(), getLayout()
Methods inherited from Com\Tecnick\Pdf\Page\Format
convertPoints(), getPageFormatSize(), getPageOrientation(), getPageOrientedSize(), getUnitRatio()
Constants summary
string PAGE_TOT

Alias for total number of pages in a group

# '~#PT'
string PAGE_NUM

Alias for page number

# '~#PN'
Constants inherited from Com\Tecnick\Pdf\Page\Settings
Properties summary
protected array $page

Array of pages (stack).

# array()
protected integer $pageid

Current page ID.

# -1
protected integer $pmaxid

Maximum page ID.

# -1
protected array $group

Count pages in each group

# array(0 => 0)
protected float $kunit

Unit of measure conversion ratio

# 1.0
protected Com\Tecnick\Color\Pdf $col

Color object

protected Com\Tecnick\Pdf\Encrypt\Encrypt $enc

Encrypt object

protected boolean $pdfa

True if we are in PDF/A mode.

# false
protected boolean $sigapp

True if the signature approval is enabled (for incremental updates).

# false
protected integer $rdoid

Reserved Object ID for the resource dictionary.

# 1
Properties inherited from Com\Tecnick\Pdf\Page\Box
Properties inherited from Com\Tecnick\Pdf\Page\Mode
$display, $layout
Properties inherited from Com\Tecnick\Pdf\Page\Format
$format, $unitratio

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