DImuthuUpe / AndroidPdfViewer

Android view for displaying PDFs rendered with PdfiumAndroid
Apache License 2.0
8.18k stars 1.91k forks source link

jumpTo() function not working #1101

Open bawakali opened 2 years ago

bawakali commented 2 years ago

item = getIntent().getExtras().getInt("POSITION");

if (item==1){ jumpTo(40); }

public void jumpTo(int page){ mypdfviewer.fromAsset("File.pdf").load(); mypdfviewer.jumpTo(page); mypdfviewer.loadPages(); mypdfviewer.setVisibility(View.VISIBLE);

}
Basti189 commented 2 years ago

use jumpTo after load or in your case .defaultPage(page)