Categories > OpenTBS with DOCX >

Text in bold

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Jonas
Date: 2012-10-10
Time: 18:02

Text in bold

Hi everyone,

I have another question, does anyone know how to specify in the PHP code that some words must be bold ?

As my previous question about the word wrap, the balises <b> are not processed as it would be in HTML.

Jonas
By: Skrol29
Date: 2012-10-12
Time: 00:06

Re: Text in bold

Hi Jonas,

There is nothing equivalent to HTML.
Here is the inner XML for having a string in bold in a DOCX file:

      <w:r>
        <w:t>text: normal-</w:t>
      </w:r>
      <w:r>
        <w:rPr>
          <w:b/>
        </w:rPr>
        <w:t>bold</w:t>
      </w:r>
      <w:r>
        <w:t>-normal.</w:t>
      </w:r>