user1085455
user1085455

Reputation: 11

Hyperlink pdf on MUPDF

I have build MUPDF library for android and its working fine to view a pdf but any one know how I can able to view pdf with hyper link using mupdf as mupdf said support hyperlink?????

Upvotes: 1

Views: 1425

Answers (1)

Ronnie
Ronnie

Reputation: 862

I had the same need these last couple of days; I wrote a small patch on the 1.0RC1 code to return a String instead of the int on. It was basically all there, but needed to change some things;

public static native String getPageLink(int page, float x, float y);

It still returns the page as the int but now as "24", soo you can parse it if you need it still. Hope the MuPDF source gets updated soon to return a full java structure on link types etc...

You can download this: MuPDF-Extension-1.0RC1

The download contains the patch (as you can compile it yourselve), the changed mupdfcore.c & mupdfcore.java jni files, but also for easy use the compiled binaries for android.

Upvotes: 2

Related Questions