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

Can I add TOC bookmark to a pdf by pdf-lib? #514

Closed
l0o0 opened this issue Jul 3, 2020 · 2 comments
Closed

Can I add TOC bookmark to a pdf by pdf-lib? #514

l0o0 opened this issue Jul 3, 2020 · 2 comments

Comments

@l0o0
Copy link

l0o0 commented Jul 3, 2020

Hi, I have a json like data that indicates page number and content. I hope I can use this data to add a table of contents bookmark in the pdf. It's something like below
图片

@caspervanpomeren
Copy link

Look at #127 , it has the same problem and a possible solution.

Problem is:
pdf-lib doesn't have a high level API for it yet. So it requires a bit of lower-level code.

@l0o0
Copy link
Author

l0o0 commented Jul 6, 2020

@caspervanpomeren Thank you for your reply. I am trying to use non-js tools to do this.

@l0o0 l0o0 closed this as completed Jul 6, 2020
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