We can use the following following code to embed the PDF in HTML. It makes use of object
tag and also PDF-open parameters (rfc3778) To fix the zoom, open specific page etc. Many other options are available. They are listed below along with example.
Fit to page
<object data="https://thejeshgn.com/wp-content/uploads/2022/04/MAMC-comp.pdf?#zoom=Fit&view=Fit"
type="application/pdf"
style="height: 800px;width: 99%">
</object>
Zoom, As you can see we have view=Fit
and zoom=Fit
to the URL so it fits the page. Thats because FF uses zoom and chrome uses view.
Go to specific page
<object data="https://thejeshgn.com/wp-content/uploads/2022/04/MAMC-comp.pdf?#zoom=Fit&view=Fit&page=5"
type="application/pdf"
style="height: 800px;width: 99%">
</object>