Class TocSample

java.lang.Object
org.docx4j.samples.TocSample

public class TocSample extends Object
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 Details

    • update

      static boolean update
    • createPDF

      static boolean createPDF
    • outputDir

      static String outputDir
    • TOC_STYLE_MASK

      public static final String TOC_STYLE_MASK
      See Also:
  • Constructor Details

    • TocSample

      public TocSample()
  • Method Details