79296967

Date: 2024-12-20 10:57:45
Score: 1
Natty:
Report link

This is what i found out.

for i in range(len(reader.pages)):
page = reader.pages[i]
# Extract text from page
pdf_text = page.extract_text()
# Print all URL
if "/Annots" in page:
    for annot in page["/Annots"]:
        annot_obj = annot.get_object()
        if annot_obj["/Subtype"] == "/Link":
            dest = annot_obj["/A"]["/URI"]
            print(f"page: {i} dest: {dest}")
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28868830