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

Add, set the level to a numbering paragraph on XWPFParagraph #163

Closed
wants to merge 1 commit into from
Closed

Add, set the level to a numbering paragraph on XWPFParagraph #163

wants to merge 1 commit into from

Conversation

miguoliang
Copy link

@miguoliang miguoliang commented Dec 3, 2019

To set the level of a paragraph in a multilevel numbering list by setNumILvl.

@asf-ci
Copy link

@asf-ci asf-ci commented Dec 3, 2019

Can one of the admins verify this patch?

@miguoliang
Copy link
Author

@miguoliang miguoliang commented Dec 9, 2019

People can Set the level of a paragraph in a multilevel numbering list in Microsoft Word Docx File manually by this way https://www.miguoliang.com/apache-poi-multilevel-numbering-paragraph-microsoft-word-docx.html before my PR is merged.

However, I found that numPr tag does not appear in document.xml directly in the most of docx generated by MS word with a large number of styles, it is wrapped in a style definition in styles.xml.

Current Numbering APIs are good to generate a word document from zero, but maybe not very great for general docx files generated by any other software, such as Microsoft Word.

@pjfanning
Copy link
Contributor

@pjfanning pjfanning commented Dec 26, 2019

@miguoliang miguoliang deleted the xwpfparagraph-api-setnumilvl branch Jan 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants