I'm generating footnotes in DOCX and I found the Footnote API insufficient for 
my needs. I'm working with POI 3.0.0.

I expected to be able to create an XWPFFootnote using e.g. doc.addNewFootnote() 
or doc.getFootnotes().addNewFootnote() but it doesn't look like those types of 
methods are implemented. The only thing I could find was addFootnote(CTFtnEdn), 
which requires constructing the CTFtnEdn directly, which means constructing the 
CTP and CTR body components directly, as far as I can tell.

There's XWPFFootnotes.addFootnote(XWPFFootnote footnote) but I couldn't find a 
way to construct a new XWPFFootnote that didn't require that I already have a 
CTFtnEdn constructed.

Am I missing a way to construct footnotes using the XWPF* classes rather than 
the underlying CT* classes?

If I'm not missing it, I can do the work to enhance the WXPFFootnote API to do 
what I want if nobody's already working on it. I've successfully created 
footnotes using the current API but it's not a good fit with the rest of my 
code, which is generating XWPF* objects from incoming XML source (a generic 
simplified word processing document representation).

Cheers,

Eliot
--
Eliot Kimber
http://contrext.com
 



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to