Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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();
like image 666
Tygo van Straten Avatar asked Mar 09 '26 17:03

Tygo van Straten


1 Answers

Starting from 3.0 version, barteksc AndroidPDFViewer handles hyperlinks

Method:

.linkHandler(DefaultLinkHandler)

for example:

pdfViewer.fromFile(file)
                .linkHandler(new DefaultLinkHandler(pdfViewer))
                .load();
like image 149
Dmitriy Pavlukhin Avatar answered Mar 11 '26 08:03

Dmitriy Pavlukhin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!