|
@@ -15,9 +15,7 @@ namespace chillerlan\QRCode;
|
|
|
use chillerlan\QRCode\Data\{
|
|
use chillerlan\QRCode\Data\{
|
|
|
AlphaNum, Byte, Kanji, MaskPatternTester, Number, QRCodeDataException, QRDataInterface, QRMatrix
|
|
AlphaNum, Byte, Kanji, MaskPatternTester, Number, QRCodeDataException, QRDataInterface, QRMatrix
|
|
|
};
|
|
};
|
|
|
-use chillerlan\QRCode\Output\{
|
|
|
|
|
- QRCodeOutputException, QRImage, QRImagick, QRMarkup, QROutputInterface, QRString
|
|
|
|
|
-};
|
|
|
|
|
|
|
+use chillerlan\QRCode\Output\{QRCodeOutputException, QRFpdf, QRImage, QRImagick, QRMarkup, QROutputInterface, QRString};
|
|
|
use chillerlan\Settings\SettingsContainerInterface;
|
|
use chillerlan\Settings\SettingsContainerInterface;
|
|
|
|
|
|
|
|
use function call_user_func_array, class_exists, in_array, mb_internal_encoding, ord, strlen, strtolower, str_split;
|
|
use function call_user_func_array, class_exists, in_array, mb_internal_encoding, ord, strlen, strtolower, str_split;
|
|
@@ -107,6 +105,8 @@ class QRCode{
|
|
|
/** @var string */
|
|
/** @var string */
|
|
|
public const OUTPUT_IMAGICK = 'imagick';
|
|
public const OUTPUT_IMAGICK = 'imagick';
|
|
|
/** @var string */
|
|
/** @var string */
|
|
|
|
|
+ public const OUTPUT_FPDF = 'fpdf';
|
|
|
|
|
+ /** @var string */
|
|
|
public const OUTPUT_CUSTOM = 'custom';
|
|
public const OUTPUT_CUSTOM = 'custom';
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -131,6 +131,9 @@ class QRCode{
|
|
|
QRImagick::class => [
|
|
QRImagick::class => [
|
|
|
self::OUTPUT_IMAGICK,
|
|
self::OUTPUT_IMAGICK,
|
|
|
],
|
|
],
|
|
|
|
|
+ QRFpdf::class => [
|
|
|
|
|
+ self::OUTPUT_FPDF
|
|
|
|
|
+ ]
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
/**
|