简体   繁体   English

如何使用 NodeJS/ReactJS/PHP 提取 PDF 文件的书签 (TOC)?

[英]How can I extract bookmarks(TOC) of a PDF file using NodeJS/ReactJS/PHP?

Everyone must have seen that when you open a pdf in the browser or acrobat pdf reader a bookmarks tabs shows up just like this one想必大家都看到了,在浏览器或acrobat pdf阅读器中打开pdf时,会出现这样的书签标签在此处输入图像描述

In case pdf does not have bookmarks the list will be empty.如果 pdf 没有书签,列表将为空。 So I am looking to fetch these bookmarks from the pdf using nodejs/react/php.所以我希望使用 nodejs/react/php 从 pdf 获取这些书签。

This is the link to the official docs and its works I have tired it.这是官方文档及其作品的链接我已经厌倦了。

To be precise getPageIndex is the method you are looking for.准确地说getPageIndex是您正在寻找的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM