I am currently using angular2/4 along with angular-material (https://material.angular.io/). My challenge lies in trying to embed a PDF within it. The issue I am facing is that the height of the PDF object seems to be small and doesn't fully occupy the space within the container. I can manually add a style="500px" to adjust the height to 500px, but setting the height to 100% results in a distorted height. However, the width works fine when set to 100%.
Is there a way to make my PDF object fill the entire height of the container?
<md-tab-group>
<md-tab label="Tab 1">
<object data="https://pdfobject.com/pdf/sample-3pp.pdf#page=2" type="application/pdf" width="100%" height="100%">
<p><b>Example fallback content</b>: This browser does not support PDFs. Please download the PDF to view it: <a href="/pdf/sample-3pp.pdf">Download PDF</a>.</p>
</object>
</md-tab>
<md-tab label="Tab 2">Contents of Tab 2</md-tab>
</md-tab-group>