Extract bookmarks from PDF files using Matlab?

How to extract all the bookmarks from a PDF file? These bookmarks are usrually the headlines of the pdf. Thank you.

4 件のコメント

Dyuman Joshi
Dyuman Joshi 2023 年 10 月 15 日
How is your question related to MATLAB?
Wei Sun
Wei Sun 2023 年 10 月 15 日
編集済み: Wei Sun 2023 年 10 月 15 日
I mean using Matlab. I've changed the title of the question.
Christopher Creutzig
Christopher Creutzig 2023 年 10 月 18 日
Those “bookmarks” form a tree structure, with chapters and sections, and include (hyperlink) targets in the PDF. What kind of output would be useful for what you are trying to do, a flat vector of strings, or do you need the nesting information? Do you need the link targets?
(Not saying I have a solution for any of these, but it would help in trying to answer your question.)
dpb
dpb 2023 年 10 月 18 日
@Christopher Creutzig, if you're particularly interested in/knowlegeable of pdf file interaction, you might find <another recent question> of some interest.

サインインしてコメントする。

回答 (1 件)

dpb
dpb 2023 年 10 月 15 日
移動済み: dpb 2023 年 10 月 15 日

0 投票

High level MATLAB functions including extractFileText, pdfinfo and readPDFFormData in the <DataAnalyticsToolbox> don't return the bookmarks; you'll have to have some 3rd party pdf toolset to be able to do that...there are some like <itext bookmark example> that utilize code in a DLL that you would have to write mex code in your language of choice to use.
All you can do with high-level MATLAB will be to <search for known strings or patterns>.

2 件のコメント

Wei Sun
Wei Sun 2023 年 10 月 17 日
編集済み: Wei Sun 2023 年 10 月 17 日
Thanks for your answer. Much hope that an official function in Text Analytics Toolbox should be provided.
dpb
dpb 2023 年 10 月 17 日
You can always submit an enhancement request to TMW...

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeShifting and Sorting Matrices についてさらに検索

タグ

質問済み:

2023 年 10 月 15 日

コメント済み:

dpb
2023 年 10 月 18 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by