Answers for "zoomin pdf in android studio"

0

zoomin pdf in android studio

public void setPDF(String asset,int pages)
{
    pdfView.fromAsset(asset).swipeHorizontal(true).onLoad(new OnLoadCompleteListener() {
        @Override
        public void loadComplete(int nbPages)
        {
            pdfView.fitToWidth(0);   // Goto to specific page
            pdfView.setMinZoom(60);
            pdfView.setMidZoom(80);
            pdfView.setMaxZoom(100);
            progressBar.setVisibility(View.GONE);
        }
    }).defaultPage(pages).enableAntialiasing(true).load();
}
Posted by: Guest on April-24-2021

Browse Popular Code Answers by Language