Any suggestion how to display the portion of a text bold inside a MultiCell n FPDF

StackOverflow https://stackoverflow.com/questions/12259294

  •  30-06-2021
  •  | 
  •  

I am using FPDF latest version for creating pdf files in php. The task which i want to perform is that i have values stored in database with html bold tags inside them that is some text is present inside html b tag (properly inside opening and closing tags). I want to display the text inside those b tags as bold in a MultiCell.

Any suggestion how to display the portion of a text bold inside a MultiCell.

Any help will be appreciated!

有帮助吗?

解决方案

You can use the Fpdf Multicell add-on

其他提示

If you are satisfied with similar solution without using MultiCell(), then no need to use Diego's suggestion, because you need to pay at least 20 EUR for that solution.

I've already answered this with only a few lines of code in FPDF - Inline bold text

You can easily modify the Rect() width and height with math to contain your database values.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top