Need uppercase

This commit is contained in:
Cram42 2022-11-12 20:29:34 +08:00
parent 60ef5686ab
commit ffce6ec327

View file

@ -534,7 +534,7 @@ abstract class Label
* @return object (object)[ 'width' => (float)123.4, 'height' => (float)123.4 ]
*/
public static function fromFormat($format, $orientation='L', $unit='mm', $round=false) {
$size = collect(TCPDF_STATIC::getPageSizeFromFormat($format))
$size = collect(TCPDF_STATIC::getPageSizeFromFormat(strtoupper($format)))
->sort()
->map(function ($value) use ($unit) {
return Helper::convertUnit($value, 'pt', $unit);