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 with SimpleDocTemplate #12

Open
hidayatrzayev opened this issue Feb 17, 2020 · 0 comments
Open

Table of Contents with SimpleDocTemplate #12

hidayatrzayev opened this issue Feb 17, 2020 · 0 comments

Comments

@hidayatrzayev
Copy link

hidayatrzayev commented Feb 17, 2020

There is a great feature in reportlab that easily lets you generate table of contents automatically every time you add some headings in your PDF document. However, this feature works only if you use BaseDocTemplate as your parent class, and not SimpleDocTemplate.

Since SimpleDocTemplate does not override the method multiBuild() from the BaseDocTemplate, which is needed in order to generate the table of contents, I cannot use a feature of SimpleDocTemplate such as onFirstPage and onLaterPages.

Would be nice to add a support for table of contents for SimpleDocTemplate as well.

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

No branches or pull requests

1 participant