Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOCX to HTML Without image #1340

Open
shahbaazrokadia opened this issue Apr 10, 2018 · 1 comment
Open

DOCX to HTML Without image #1340

shahbaazrokadia opened this issue Apr 10, 2018 · 1 comment

Comments

@shahbaazrokadia
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants