Skip to content

Commit 8f973b9

Browse files
committed
Add suppot to readonly on Textarea and Input type text
1 parent e18ce88 commit 8f973b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Html2Pdf.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6051,6 +6051,7 @@ protected function _tag_open_TEXTAREA($param)
60516051

60526052
$prop['multiline'] = true;
60536053
$prop['value'] = $level[0]->getParam('txt', '');
6054+
$prop['readonly'] = $param['readonly'] ?? false;
60546055

60556056
$this->pdf->TextField($param['name'], $w, $h, $prop, array(), $x, $y);
60566057

@@ -6159,6 +6160,7 @@ protected function _tag_open_INPUT($param)
61596160
}
61606161
$h = $f*1.3;
61616162
$prop['value'] = $param['value'];
6163+
$prop['readonly'] = $param['readonly'] ?? false;
61626164
$this->pdf->TextField($name, $w, $h, $prop, array(), $x, $y);
61636165
break;
61646166

0 commit comments

Comments
 (0)