classes-Com-Tecnick-Pdf-Image-Output

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.

Output

in package

AbstractYes

Com\Tecnick\Pdf\Image\Output

Tags
since
2011-05-23
category

Library

author

Nicola Asuni info@tecnick.com

copyright

2011-2023 Nicola Asuni - Tecnick.com LTD

license

http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT)

link
https://github.com/tecnickcom/tc-lib-pdf-image
phpstan-import-type

ImageBaseData from \Com\Tecnick\Pdf\Image\Import

phpstan-import-type

ImageRawData from \Com\Tecnick\Pdf\Image\Import

Table of Contents

Methods

__construct()  : mixed
Initialize images data.
getObjectNumber()  : int
Returns current PDF object number.
getOutImagesBlock()  : string
Get the PDF output string for Images.
getSetImage()  : string
Get the PDF output string to print the specified image ID.
getXobjectDict()  : string
Return XObjects Dictionary portion for the images.

Methods

__construct()

Initialize images data.

public __construct(float $kunit, Encrypt $encrypt[, bool $pdfa = false ][, bool $compress = true ]) : mixed
Parameters
$kunit : float

Unit of measure conversion ratio.

$encrypt : Encrypt

Encrypt object.

$pdfa : bool = false

True if we are in PDF/A mode.

$compress : bool = true

Set to false to disable stream compression.

getObjectNumber()

Returns current PDF object number.

public getObjectNumber() : int
Return values
int

getOutImagesBlock()

Get the PDF output string for Images.

public getOutImagesBlock(int $pon) : string
Parameters
$pon : int

Current PDF Object Number.

Return values
string

PDF code for the images block.

getSetImage()

Get the PDF output string to print the specified image ID.

public getSetImage(int $iid, float $xpos, float $ypos, float $width, float $height, float $pageheight) : string
Parameters
$iid : int

Image ID.

$xpos : float

Abscissa (X coordinate) of the upper-left Image corner in user units.

$ypos : float

Ordinate (Y coordinate) of the upper-left Image corner in user units.

$width : float

Image width in user units.

$height : float

Image height in user units.

$pageheight : float

Page height in user units.

Return values
string

Image PDF page content.

getXobjectDict()

Return XObjects Dictionary portion for the images.

public getXobjectDict() : string
Return values
string
On this page
 

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