Forum


Replies: 4   Views: 1373
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 - 11:53

Hola,

Necesitas utilizar la opciĆ³n footnoteMark (o la correspondiente para endnote) por ejemplo:

$footnote->addFootnote(
    array(
        'textDocument' => 'footnote',
        'textFootnote' => $html,
        'footnoteMark' => array(
          'customMark' => '*',
          'bold' => true
        )
    )
);
                    

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

$docx->addText($text);

Saludos.