Package org.docx4j.samples
Class TocSample
java.lang.Object
org.docx4j.samples.TocSample
This is an end-to-end example showing you how to
to add and populate a ToC, then update it.
It uses export-fo to generate page numbers.
To use Word to populate (and/or update) the ToC,
please see the TocOperations example in docx4j-samples-export-documents4j-local
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidfillPageWithContent(MainDocumentPart documentPart, String content) static void
-
Field Details
-
update
static boolean update -
createPDF
static boolean createPDF -
outputDir
-
TOC_STYLE_MASK
- See Also:
-
-
Constructor Details
-
TocSample
public TocSample()
-
-
Method Details
-
main
- Throws:
Exception
-
fillPageWithContent
-