generateToc ignores "\b" instruction
Posted:
Thu Nov 16, 2017 2:24 am
by jamesaw22
I've created a bookmark that wraps certain pages of content, called "MainContent", and passed " \\b \"MainContent"\" " as the instruction to generateToc(), but it's ignored. Is there anyway to exclude parts from generateToc()?
Re: generateToc ignores "\b" instruction
Posted:
Thu Nov 16, 2017 7:43 pm
by jason
Hi James, there is no support for "\b" in org.docx4j.toc.switches right now.
We'd be happy to accept a pull request though if you were to add it.
I guess the way to do it would be to say "if there's a \b" first get that portion of the document, otherwise apply to whole document. So the first thing we need is some code to grab the contents of a bookmark.