I am using ng2-pdf-viewer in my Angular 8 application.
I would like to show the PDF fit to the height of the container regardless of the width. So, PDF must take all of the height as we can do by selecting Page Fit from the zoom option in Mozilla's PDF (link here):
Here is what I have got right now:

My code for ng2-pdf-viewer is:
<pdf-viewer
[src]='"./assets/images/userFiles/" + file.fileName'
[original-size]="false"
[render-text]='false'
[show-all]="false"
style="display: block; height: 100%;"
(after-load-complete)='afterLoadComplete($event)'
(page-rendered)='pageRendered($event)'
(pageChange)='pageChange($event)'
></pdf-viewer>
I have tried countless things for days to get this working. fit-to-page, giving height to all of the containers and much more.
Let me know, what is the best way to get it done
