how to display pdf in html code example
Example 1: html embed a pdf
<!DOCTYPE html>
<html>
<head>
<title>Title of the document</title>
</head>
<body>
<h1>PDF Example with iframe</h1>
<iframe src="link/to/your.pdf" width="100%" height="500px">
</iframe>
</body>
</html>
<!-- insta: @hardcode_studios -->
Example 2: show pdf in html
<iframe src="https://docs.google.com/gview?url=https://path.com/to/your/pdf.pdf&embedded=true" style="width:600px; height:500px;" frameborder="0"></iframe>