How to make PDF embedded in HTML zoom to fit?

Spread the love

Sometimes, we want to make PDF embedded in HTML zoom to fit.

In this article, we’ll look at how to make PDF embedded in HTML zoom to fit.

How to make PDF embedded in HTML zoom to fit?

To make PDF embedded in HTML zoom to fit, we use the embed element.

For instance, we write

<embed src="filename.pdf#page=1&zoom=300" width="575" height="500" />

to add the embed ewlement with the src attribute set tro thre PDF URL with the zoom query parameter set to the zoom level.

Conclusion

To make PDF embedded in HTML zoom to fit, we use the embed element.

Leave a Reply

Your email address will not be published. Required fields are marked *