Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

How to get the Bookmarks in pdf file by using pdf.js library

  • 1 个回答
  • 3 人有此问题
  • 1 次查看
  • 最后回复者为 guigs

more options

In my application i am using PDF.js library to view the pdf files. Now i want to fetch the bookmark details which was already set in the pdf page. How could i get the those bookmark details by using pdf.js library. is there any specific methods available in pdf.js library to get that?

In my application i am using PDF.js library to view the pdf files. Now i want to fetch the bookmark details which was already set in the pdf page. How could i get the those bookmark details by using pdf.js library. is there any specific methods available in pdf.js library to get that?

所有回复 (1)

more options

Hi ShantamReddy,

I asked #pdfjs and we would need you to clarify what you mean by "bookmark"

This is where the bookmarks in a pdf are populated https://github.com/mozilla/pdf.js/blo.../viewer.js#L1032 however you will have to customize what to do with them.

I hope this sheds some light on what you are trying to do.