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

How to generate a pdf with a table of contents? #669

Open
wml107 opened this issue Oct 9, 2023 · 2 comments
Open

How to generate a pdf with a table of contents? #669

wml107 opened this issue Oct 9, 2023 · 2 comments

Comments

@wml107
Copy link

wml107 commented Oct 9, 2023

I would like to generate a pdf with a table of contents. The title of the table of contents is dynamically extracted from my content and also needs to correspond to the page number. The current API doesn't seem to be sufficient for me to achieve this, is there any solution?

@jmaguirrei
Copy link

Hello @wml107 did you found a solution? I am seeking the same goal

@wml107
Copy link
Author

wml107 commented May 10, 2024

Hello @wml107 did you found a solution? I am seeking the same goal

I realized this demand through the paged.js, it can not only automatically generate the toc, also can add the header and footer with the page number; He is based on the processing of html, completely independent of the canvas, so it can also support a variety of complex styles; And it works well with the lifecycle of libraries like Vue and React.

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

2 participants