使用 PyPDF2 或 Pdfminer 从 pdf 中提取 URLS、BOOKMARKS、MARKUPs 和评论

Extract URLS,BOOKMARKS, MARKUPs and Comments from a pdf using PyPDF2 or Pdfminer

我尝试使用 pypdf2 或 pdfminer 从 pdf 中提取 pdf url、评论或书签。即使 pdf 中存在 url 或书签,我也看不到 /Annots 或 URI。

使用 PyMuPDF 我能够从 pdf 中提取链接和书签。 如何安装 PyMuPDF 1.pip安装PyMuPDF 有直接的方法可以从 pdf 中提取书签和超链接。 请参阅以下链接中的文档。 http://pymupdf.readthedocs.io/en/latest/tutorial/#inspecting-the-links-of-a-page http://pymupdf.readthedocs.io/en/latest/tutorial/#working-with-outlines

如果有人知道如何从 pdf 中提取评论和标记,请告诉我?