PHPOffice / PHPWord

A pure PHP library for reading and writing word processing documents
https://phpoffice.github.io/PHPWord/
Other
7.25k stars 2.69k forks source link

DOCX to HTML Without image #1340

Open shahbaazrokadia opened 6 years ago

shahbaazrokadia commented 6 years ago

Hi i need to convert DOCX to HTML. with image and style Here is my code example $source = "Sampledocx.docx"; $fileheader = 'test'; $phpWord = \PhpOffice\PhpWord\IOFactory::load($source); $htmlWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'HTML'); $htmlWriter->save(storage_path('app/public/html/'. $fileheader .'.html'));

im not getting any error it is converting into html but without image

adam-godfrey commented 5 years ago

Did you get a solution to this? I'm getting the same problem with version 0.16