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 !
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