Question 1))
I am working on android pdf viewer using online url. How to add horizontal view feature to the pdf viewer? Default view action is vertical.
Question 2))
How to get downloaded PDF url? I dont want user to download the same pdf again. I think, I used that url as a cache url.
mPDFViewCtrl.openURL(fileUrl, null, null, null);
mPDFViewCtrl.setDocumentDownloadListener(new PDFViewCtrl.DocumentDownloadListener() {
@Override
public void onDownloadEvent(int type, int page_num, int page_downloaded, int page_count, java.lang.String message) {
// TODO Auto-generated method stub
if(type == PDFViewCtrl.DOWNLOAD_FINISHED){
//or to hide it
setProgressBarIndeterminateVisibility(false);
}else if(type == PDFViewCtrl.DOWNLOAD_FAILED){
//or to hide it
setProgressBarIndeterminateVisibility(false);
Toast.makeText(PdfViewActivity.this, message, Toast.LENGTH_SHORT).show();
}
}
});