Skip to content

Generate word from html table, width problem #2235

Open
@lsantaniello

Description

@lsantaniello

Hi,
I need to create a word file from PHP. I create a HTML string into PHP and use PhpWord to create a file

`$phpWord = new \PhpOffice\PhpWord\PhpWord();

\PhpOffice\PhpWord\Shared\Html::addHtml($section, $html);
`

This is my simple table:

unfortunately I can't share the table code in this post

`

`

Unfortunatly the column width is not recognized. the column width is adapted to the content.

How can I solve the problem? Could you please help me?

Thanks
L

Nome e Cognome
Luogo e data di nascita

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions