Detect internal anchors and hyperlinks of PDF in Android

Put your problem here if it does not fit any of the other categories.

Detect internal anchors and hyperlinks of PDF in Android

Postby nisha.113a5 » Thu Mar 01, 2012 12:34 pm

How to interact with internal anchors and embedded hyperlinks of PDF in Android. For read the PDF file, I am using MuPDF library. I can successfully read the PDF, but not able to detect any links?



Very much thankful in Advance......
Nisha
nisha.113a5
Junior Developer
Junior Developer
 
Posts: 14
Joined: Sat Sep 19, 2009 12:35 pm

Top

Re: Detect internal anchors and hyperlinks of PDF in Android

Postby Phyll » Thu Mar 01, 2012 10:35 pm

Hi Nisha,

I would think if you are able to get a textual representation of the PDF file, you would be able to parse it for links by looking for the http:// signature. I guess I don't know what an anchor is so I don't know if it has the same kind of thing that could be exploited. Can you get the document in textual form?

Phyll
Phyll
Master Developer
Master Developer
 
Posts: 648
Joined: Fri Oct 14, 2011 11:19 am

Re: Detect internal anchors and hyperlinks of PDF in Android

Postby nisha.113a5 » Fri Mar 02, 2012 8:29 am

Hi Phyll,

Thank you for reply.
Yes, I am using MuPDF library for reading PDF. PDF contains image as well text. So cannot parse text content only from PDF. And anchor it is internal links that moves inside the PDF. In MuPDF there is not any solution for retrieving internal and external links of PDF. :(
Nisha
nisha.113a5
Junior Developer
Junior Developer
 
Posts: 14
Joined: Sat Sep 19, 2009 12:35 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 16 guests