Reputation: 45
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
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