Tygo van Straten
Tygo van Straten

Reputation: 45

barteksc/AndroidPDFViewer hyperlinks not working

I'm using androidPDFViewer and it works fine, however the hyperlinks in the pdf files are not clickable. How can I fix this?

pdfView = (PDFView) findViewById(R.id.pdfView);

    pdfView.fromAsset("magazine"+ magazine +".pdf").enableSwipe(true).enableAnnotationRendering(true).load();

Upvotes: 3

Views: 1061

Answers (1)

Dmitriy Pavlukhin
Dmitriy Pavlukhin

Reputation: 419

Starting from 3.0 version, barteksc AndroidPDFViewer handles hyperlinks

Method:

.linkHandler(DefaultLinkHandler)

for example:

pdfViewer.fromFile(file)
                .linkHandler(new DefaultLinkHandler(pdfViewer))
                .load();

Upvotes: 1

Related Questions