Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table of contents (only for WordDocumentBuilder at this time) #38

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

goeh
Copy link
Contributor

@goeh goeh commented Feb 17, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants