TOPIC: Fit PDF to screen by width or height

We are using pdfviewer-framework for Android. We display the PDF file with a PDFReader instance. Our goal is to fit the whole pdf file to the screen and center it if its needed. Currently the PDFReader instance fits the PDF file to the width of the screen. The result of this behaviour is, that if the PDF file is too big, the PDFReader fits it to the width and makes it scrollable.