class CRM_Utils_PDF_Label extends TCPDF

Class CRM_Utils_PDF_Label

Properties

$defaults
$format
$formatName
$marginLeft
$marginTop
$xSpace
$ySpace
$xNumber
$yNumber
$width
$height
$lineHeight
$paddingLeft
$paddingTop
$charSize
$metricDoc
$fontName
$fontStyle
$paperSize
$orientation
$paper_dimensions
$countX
$countY

Methods

__construct($format, string|Unit $unit = 'mm')

Constructor.

SetGenerator($objectinstance, string $methodname = 'generateLabel')

No description

float|int|mixed
getFormatValue(string $name, bool $convert = FALSE)

No description

LabelSetFormat($format, $unit)

initialize label format settings.

generateLabel(string $text)

Generate the pdf of one label (can be modified using SetGenerator)

AddPdfLabel($texte)

Print a label.

array
getFontNames()

Get the available font names.

Details

at line 98
__construct($format, string|Unit $unit = 'mm')

Constructor.

Parameters

$format Either the name of a Label Format in the Option Value table. or an array of Label Format values.
string|Unit $unit Unit of measure for the PDF document

at line 123
SetGenerator($objectinstance, string $methodname = 'generateLabel')

Parameters

$objectinstance
string $methodname

at line 134
float|int|mixed getFormatValue(string $name, bool $convert = FALSE)

Parameters

string $name
bool $convert

Return Value

float|int|mixed

at line 155
LabelSetFormat($format, $unit)

initialize label format settings.

Parameters

$format
$unit

at line 186
generateLabel(string $text)

Generate the pdf of one label (can be modified using SetGenerator)

Parameters

string $text

at line 232
AddPdfLabel($texte)

Print a label.

Parameters

$texte

at line 263
array getFontNames()

Get the available font names.

Return Value

array