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:39

Hello,

We have run the same script but using your HTML and the output is correct as well:

$docx = new CreateDocx();

$html = '
<p>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>Text</p>

<table border="0" width="100%">
    <tr valign="top">
        <td width="50%"></td>
        <td width="50%">
            <p>Text</p>
        </td>
    </tr>
</table>

<p>Text</p>
';
 
$docx->embedHTML($html, array('useHTMLExtended' => true));

$docx->createDocx('output');

The DOCX can be opened without error and all contents appear correctly (paragraphs, footnote and table). We have opened it using MS Word 2010, MS Word 2013, MS Word 2016 and LibreOffice.

Regards.