Sometimes, a PDF file needs to be displayed on a web page instead of downloading it. The PDF document needs to be shown on an area of the web page. To achieve this, you may try the following code.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<br>
<object data="xyz.pdf" type="application/pdf" width="800" height="400">
alt : <a href="xyz.pdf">xyz.pdf</a>
</object>
</body>
</html>
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.