Python Forum
Application to find title in PDF?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Application to find title in PDF?
#5
For others' benefit: If the PDF contains a ToC ("bookmarks"), it might have what you're looking for.

#pip install PyMuPDF
import fitz

doc = fitz.open("input.pdf")
toc = doc.getToC()
for item in toc:
	print(item[1])
Reply


Messages In This Thread
Application to find title in PDF? - by Winfried - Mar-24-2021, 09:56 PM
RE: Application to find title in PDF? - by Larz60+ - Mar-25-2021, 12:14 AM
RE: Application to find title in PDF? - by Winfried - Mar-25-2021, 09:24 AM
RE: Application to find title in PDF? - by Winfried - Mar-25-2021, 03:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to send data from a python application to an external application aditya_rajiv 1 2,202 Jul-26-2021, 06:00 AM
Last Post: ndc85430
  How to change font size of chart title and axis title ? thrupass 5 15,649 Mar-30-2018, 04:02 PM
Last Post: DrFunn1

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020