document-builder icon indicating copy to clipboard operation
document-builder copied to clipboard

Table of contents (only for WordDocumentBuilder at this time)

Open goeh opened this issue 10 years ago • 0 comments

This pull request adds support generating Table of Contents with the toc() tag.

paragraph(font: [size: 20.pt, bold: true]) {
    text "Table of Contents"
}

toc()

pageBreak()

It's not 100% complete because (as usual) it's much harder to do this in PDF. I'm not sure I could do it. If someone with more PDF/PDFBox experience can step in I would be very thankful.

goeh avatar Feb 17 '16 13:02 goeh