Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

How to get HyperText(not HyperLink)? #38

Open
hoelan opened this issue Jan 7, 2020 · 0 comments
Open

How to get HyperText(not HyperLink)? #38

hoelan opened this issue Jan 7, 2020 · 0 comments

Comments

@hoelan
Copy link

hoelan commented Jan 7, 2020

I have PDFs with many hyperlinks. I want to get the text label for the hyperlinks, not the hyperlink URLs.

import pdfx
pdf = pdfx.PDFx("filename-or-url.pdf")
references_list = pdf.get_references()
for LinkObj in references_list:
Link=LinkObj.ref # get url
HyperText =LinkObj.text # CAN NOT GET LABEL over Link !

how to get HYPERTEXT.pdf

TIA

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant