pdf-element
pdf-element copied to clipboard
Question: How to auto set the height?
I want my pdf to automatically fit in a div. and my div height is 100% of my page. when I use the following syntax pdf viewer is half the size of my page:
<pdf-element id="pdf" show-spinner ></pdf-element>
For now, I am using the following syntax, but it looks bad on some computers with different resolution:
<pdf-element height=800 id="pdf" show-spinner ></pdf-element>
I have tried the following as well, but it does not work
<pdf-element height=100% id="pdf" show-spinner ></pdf-element>