Forum


Replies: 4   Views: 794
Negrita en el texto que enlaza a la nota al pie
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by admin  · 07-10-2020 - 15:29

Hola,

Ese es el comportamiento predeterminado de MS Word, heredar los estilos en footnotes/endnotes. Si quieres utilizar otros estilos tienes que definirlos, por ejemplo con un WordFragment como nuestro anterior ejemplo utiliza:

$htmlCode = '<p>Texto</p>';
$html->embedHTML($htmlCode);
$footnote->addFootnote(
    array(
        'textDocument' => 'footnote',
        'textFootnote' => $html,
        'footnoteMark' => array(
          'bold' => true
        )
    )
);
                    

$text = array();
$text[] = array('text' => 'Here comes the ');
$text[] = $footnote;
$text[] = array('text' => ' and some other text.');

Saludos.