pdf-element icon indicating copy to clipboard operation
pdf-element copied to clipboard

Question: How to auto set the height?

Open atifwaqar opened this issue 7 years ago • 1 comments

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>

atifwaqar avatar Apr 09 '17 12:04 atifwaqar

I have tried the following as well, but it does not work

<pdf-element height=100% id="pdf" show-spinner ></pdf-element>

atifwaqar avatar Apr 18 '17 10:04 atifwaqar