rospdf / pdf-php

Official R&OS PHP Pdf repository
http://pdf-php.sourceforge.net/
Other
140 stars 63 forks source link

Change the font of one field in one row of a table #161

Open RPort71 opened 2 years ago

RPort71 commented 2 years ago

Is there a way to do this? We can use tags, so is it possible to change the font size in the same way? I don't see anything related to this for just one field. Thank you.

savioret commented 1 year ago

As far as I know that is not possible. Perhaps you can work on your own fontsize callback, i.e.

<c:fontsize:15>My text</c:fontsize>

Working on a callback for this you could set different font sizes for different pieces of text even in a table. But as said, this should be custom code made by you. Check the documentation for further info.

In any case I'm checking the addText code and seems that is not going to bepossible for now even using a callback.

Note: possible duplicate of #94