Reading hyperlinks from pdf file

后端 未结 2 2045
天命终不由人
天命终不由人 2020-12-10 08:26

I\'m trying to read a pdf file and get all hyperlinks from this file. I\'m using iTextSharp for C# .net.

PdfReader reader = new PdfReader(\"test.pdf\");              


        
2条回答
  •  抹茶落季
    2020-12-10 08:56

    I have noticed that any text on a PDF that looks like a URL can be simulated as a annotation link by the PDF vewer. In Adobe Acrobat there is a page display preference under the general tab called "Create links from URLs" that controls this. I was writing code to remove URL link annotations, only to find that there were none. But yet Acrobat was automatically turning text that looked like a URL into a what appeared to be an annotation link.

提交回复
热议问题