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

Enhancement to XWPFFootnote and related APIs #114

Closed
wants to merge 1 commit into from
Closed

Enhancement to XWPFFootnote and related APIs #114

wants to merge 1 commit into from

Conversation

drmacro
Copy link

@drmacro drmacro commented Jul 21, 2018

My first pass at enhancing the XWPFFootnote API.

Adds new methods createParagraph() and createTable()/createTable(rows, cols) to XWPFFootnote.

Adds new methods createFootnote() and removeFootnote() to XWPFDocument and XWPFFootnotes

Adds new method addFootnoteReference(XWPFFootnote) to XWPFParagraph

Creation of new footnote does not add any body elements. However, adding the first paragraph or table automatically creates the required footnote ref run in the first paragraph (adding the paragraph if necessary).

I also made a pass over the javadocs for XWPFFootnote.

I tested with the included unit tests and also in the context of my real-world project that is driving this update. That verifies, for example, that a multi-paragraph footnote with a table works as it should.

@asfgit
Copy link

asfgit commented Jul 21, 2018

Can one of the admins verify this patch?

@asfgit asfgit closed this in c1fc95c Jul 21, 2018
@pjfanning
Copy link
Contributor

LGTM . Merged with c1fc95c

Alain-Bearez pushed a commit to cuali/poi that referenced this pull request Dec 12, 2019
tonyqus added a commit to nissl-lab/npoi that referenced this pull request May 2, 2022
apache/poi#114
Enhancement to XWPFFootnote and related APIs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants