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

How to get Auto-numbering docx to html? #1911

Closed
BoldErdene1221 opened this issue Jul 30, 2020 · 2 comments
Closed

How to get Auto-numbering docx to html? #1911

BoldErdene1221 opened this issue Jul 30, 2020 · 2 comments

Comments

@BoldErdene1221
Copy link

BoldErdene1221 commented Jul 30, 2020

SharedScreenshot
Left side input
Right side output
Code:
`<?php

require_once './vendor/autoload.php';

$fileTmp = './test03.docx';

$phpWord = \PhpOffice\PhpWord\IOFactory::load($fileTmp);

$objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'HTML');

$objWriter->save('test4.html');

?>`

@mleppik
Copy link

mleppik commented Aug 10, 2020

Currently I don't think you can - looking at the source of HTML ListItem writer:
https://github.com/PHPOffice/PHPWord/blob/develop/src/PhpWord/Writer/HTML/Element/ListItem.php#L43

It is just a Paragraph element.

@BoldErdene1221
Copy link
Author

Currently I don't think you can - looking at the source of HTML ListItem writer:
https://github.com/PHPOffice/PHPWord/blob/develop/src/PhpWord/Writer/HTML/Element/ListItem.php#L43

It is just a Paragraph element.

Ok, thank you

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