imillard — 2013-05-29T16:39:20-04:00 — #1
I am generating a PDF file from a web page, using the FPDF add-on.
Is there a way of embedding a bold-on command in a string variable, similar to a line-feed command.
Obviously, <b> is not recognized when 'Writing' a string of text to the document.
So, if /n is a line feed, is there an equivalent character for bold?
felgall — 2013-05-29T17:36:15-04:00 — #2
I am not aware of any character that does that. It shouldn't be too hard to split the string where the <b> and </b> occur and to output it as three separate strings turning the bold on and off in between using the FPDF font command.
imillard — 2013-05-29T17:40:51-04:00 — #3
Yes, that was my last resort.
The file/form I am generating has 27 different text strings, which are displayed according to the users input.
I suppose I'll have 45 strings now.
system — 2013-05-30T01:51:28-04:00 — #4
Equivalent character for bold may be STRONG.Try it out. May be this works.
imillard — 2013-05-30T07:29:23-04:00 — #5
Unfortunately, that command set is not recognized by FPDF. The "manual" for that extension set (a very poor one) makes no mention of any bold commands that may be contained in a variable. It's nothing like the PHP 'echo' command.