php - tcpdf auto size text field -


i having trouble getting text field auto size on form i'm creating. setting textsize of properties 0 in properties of textfield seems use font set document. here code using create textfield.

$pdf->textfield('description', 195, 32, array('multiline'=>true, 'linewidth'=>0, 'borderstyle'=>'none', 'textsize'=>0), array('v'=>$description)); 

i know kinda round-about way of possibly fixing this..

before textfield code, ever font (not default entire document) try:

$pdf->setfont('fontname','',fontsize); 

and after textfield code, set font ever wanted rest of document.

not sure if looking for, hope helps. luck all.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

ios - iPhone/iPad different view orientations in different views , and apple approval process -

Shrink a YouTube video to responsive width -