Forum


Replies: 6   Views: 1955
Phpdocx_footnote
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  · 20-11-2019 - 11:12

Hello,

This is a simple sample that add a text, a footnote and other text using HTML Extended (available in the package but adding more content types):

$html = '
    <head>
        <style>
            .italicc {font-style: italic;}
        </style>
    </head>
    <p>My text</p>
    <phpdocx_footnote>
        <p>Here <span class="italicc">comes</strong> the </p>
        <phpdocx_footnote_textdocument data-text="&nbsp;footnote" />
        <phpdocx_footnote_textfootnote>
            <p>Text <em>footnote</em></p>
        </phpdocx_footnote_textfootnote>
        <p>&nbsp;and some other text.</p>
    </phpdocx_footnote>
    <p>More text</p>
';
 
$docx->embedHTML($html, array('useHTMLExtended' => true));

The output is correct. Please, could you post the most simple script that illustrates your issue so we can test it?

Regards.