title: How to make my PDF File fit the screen in Android PDF library
body: <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_home);
      PDFView pdf = (PDFView)findViewById(R.id.pdfView);
      pdf.fromAsset("file.pdf").load();
  
  }
  </code></pre>
  
  <p>This is my java file what to add to fit my file to screen. I am using <a href="https://github.com/barteksc/AndroidPdfViewer" rel="nofollow noreferrer">bartesc android PDF Library</a></p>