Constants

WRITER_OPTION_MEASURE_UNIT

WRITER_OPTION_MEASURE_UNIT = 'fpdf_measure_unit'

Defines as which unit the size is handled. Default is: "mm".

Allowed values: 'mm', 'pt', 'cm', 'in'

Methods

writeDataUri()

writeDataUri(\Endroid\QrCode\QrCodeInterface  $qrCode) : string

Parameters

\Endroid\QrCode\QrCodeInterface $qrCode

Returns

string —

writeFile()

writeFile(\Endroid\QrCode\QrCodeInterface  $qrCode, string  $path) : void

Parameters

\Endroid\QrCode\QrCodeInterface $qrCode
string $path

supportsExtension()

supportsExtension(string  $extension) : bool

Parameters

string $extension

Returns

bool —

getSupportedExtensions()

getSupportedExtensions() : string[]

Returns

string[] —

getName()

getName() : string

Returns

string —

writeString()

writeString(\Endroid\QrCode\QrCodeInterface  $qrCode) : string

Parameters

\Endroid\QrCode\QrCodeInterface $qrCode

Returns

string —

getContentType()

getContentType() : string

Returns

string —

getMimeType()

getMimeType(string  $path) : string

Parameters

string $path

Returns

string —

addLogo()

addLogo(\FPDF  $fpdf, string  $logoPath, ?int  $logoWidth, ?int  $logoHeight, int  $imageWidth, int  $imageHeight) : void

Parameters

\FPDF $fpdf
string $logoPath
?int $logoWidth
?int $logoHeight
int $imageWidth
int $imageHeight

getMimeTypeFromUrl()

getMimeTypeFromUrl(string  $url) : string

Parameters

string $url

Returns

string —

getMimeTypeFromPath()

getMimeTypeFromPath(string  $path) : string

Parameters

string $path

Returns

string —