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.

Com\Tecnick\Pdf\Image\Output

Tags
since
2011-05-23
category

Library

author

Nicola Asuni info@tecnick.com

copyright

2011-2016 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

Table of Contents

$cache  : array<string|int, mixed>
Images cache
$enc  : Encrypt
Encrypt object
$image  : array<string|int, mixed>
Image structure
$kunit  : float
Unit of measure conversion ratio
$pdfa  : bool
True if we are in PDF/A mode.
$pon  : int
Current PDF object number
$xobjdict  : array<string|int, mixed>
Store image object IDs for the XObject Dictionary.
__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
getOutAltImages()  : string
Get the PDF output string for Alternate images object
getOutColorInfo()  : string
Get the PDF output string for color and mask information
getOutIcc()  : string
Get the PDF output string for ICC object
getOutImage()  : string
Get the PDF output string for Image object
getOutPalette()  : string
Get the PDF output string for Indexed palette object
getOutTransparency()  : string
Get the PDF output string for color and mask information

Properties

$cache

Images cache

protected array<string|int, mixed> $cache = []

$enc

Encrypt object

protected Encrypt $enc

$image

Image structure

protected array<string|int, mixed> $image = []

$kunit

Unit of measure conversion ratio

protected float $kunit = 1.0

$pdfa

True if we are in PDF/A mode.

protected bool $pdfa = false

$pon

Current PDF object number

protected int $pon

$xobjdict

Store image object IDs for the XObject Dictionary.

protected array<string|int, mixed> $xobjdict = array()

Methods

__construct()

Initialize images data

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

Unit of measure conversion ratio.

$enc : Encrypt

Encrypt object.

$pdfa : bool = false

True if we are in PDF/A mode.

Return values
mixed

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

getSetImage()

Get the PDF output string to print the specified image ID

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

Image ID

$xpos : int

Abscissa (X coordinate) of the upper-left Image corner

$ypos : int

Ordinate (Y coordinate) of the upper-left Image corner

$width : int

Image width in user units

$height : int

Image height in user units

$pageheight : int

Page height in user units

Return values
string

getXobjectDict()

Return XObjects Dictionary portion for the images

public getXobjectDict() : string
Return values
string

getOutAltImages()

Get the PDF output string for Alternate images object

protected getOutAltImages(array<string|int, mixed> $img, array<string|int, mixed> &$data[, string $sub = '' ]) : string
Parameters
$img : array<string|int, mixed>

Image reference

$data : array<string|int, mixed>

Image raw data

$sub : string = ''

Sub image ('mask', 'plain' or empty string)

Return values
string

getOutColorInfo()

Get the PDF output string for color and mask information

protected getOutColorInfo(array<string|int, mixed> $data) : string
Parameters
$data : array<string|int, mixed>

Image raw data

Return values
string

getOutIcc()

Get the PDF output string for ICC object

protected getOutIcc(array<string|int, mixed> &$data) : string
Parameters
$data : array<string|int, mixed>

Image raw data

Return values
string

getOutImage()

Get the PDF output string for Image object

protected getOutImage(array<string|int, mixed> &$img, array<string|int, mixed> &$data[, string $sub = '' ]) : string
Parameters
$img : array<string|int, mixed>

Image reference

$data : array<string|int, mixed>

Image raw data

$sub : string = ''

Sub image ('mask', 'plain' or empty string)

Return values
string

getOutPalette()

Get the PDF output string for Indexed palette object

protected getOutPalette(array<string|int, mixed> &$data) : string
Parameters
$data : array<string|int, mixed>

Image raw data

Return values
string

getOutTransparency()

Get the PDF output string for color and mask information

protected getOutTransparency(array<string|int, mixed> $data) : string
Parameters
$data : array<string|int, mixed>

Image raw data

Return values
string
 

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