I have issue with loading pdf from URI. i will post my code snippet below. I how you will help me.
Uri.Builder builder = new Uri.Builder();
builder.scheme("https")
.authority("pg.ipc.am")
.appendPath("assetic")
.appendPath("android_files")
.appendPath("Simple.pdf");
Uri uri = builder.build();
if(uri!=null){
pdfView.fromUri(uri)
.enableSwipe(true)
.swipeHorizontal(false)
.enableDoubletap(true)
.defaultPage(0)
//.onDraw(onDrawListener)
// .onLoad(onLoadCompleteListener)
// .onPageChange(onPageChangeListener)
// .onPageScroll(onPageScrollListener)
// .onError(onErrorListener)
.enableAnnotationRendering(false)
.password(null)
.scrollHandle(null)
.load();
}
Library does not support remote files, you have to download it by yourself.
Most helpful comment
Library does not support remote files, you have to download it by yourself.