I'm trying to add a header to a document that I'm creating from scratch. It
appears that the only way to get an XWPFHeaderFooterPolicy is to open an
existing document. Would it make sense to create an XWPFHeaderFooterPolicy
when a new document is created, rather than only when an existing document
is opened? I would then populate that policy object with a newly-created
header.
It's certainly possible that I don't yet fully grasp the intricacies of
creating and using a header. I was unable to find much in the way of
examples, and none that address my particular use-case. I would appreciate
any pointers to relevant examples. Failing that, if this particular
use-case has not been addressed in the code yet, I'd be happy to contribute
patches that address the issue.

Thanks,
Gregg

Reply via email to