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

Automated table of contents #58

Closed
philprime opened this issue Apr 16, 2018 · 0 comments
Closed

Automated table of contents #58

philprime opened this issue Apr 16, 2018 · 0 comments

Comments

@philprime
Copy link
Member

Create automated table of contents using text styles mentioned in #57 to find headers.

Proposed options:

  • List style: same options as PDFList
  • Pass a list of text styles which should be indexed
  • Can be added to the document as an element:
let tableOfContents = PDFTableOfContents(options: ...)
document.add(tableOfContent: tableOfContents)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant