-
Notifications
You must be signed in to change notification settings - Fork 1
/
pdfEmbed.html
33 lines (25 loc) · 974 Bytes
/
pdfEmbed.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<html>
<head>
<title>pdf test</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="spark-md5.js" type="text/javascript"></script>
</head>
<body class="container">
<embed src="浏览器内幕2.pdf" width="600px" height="500px" />
<div>pdf</div>
<object data="浏览器内幕2.pdf" type="application/pdf" width="600" height="500">
<a href="浏览器内幕2.pdf">test.pdf</a>
</object>
<div>pdf</div>
<iframe src="浏览器内幕2.pdf" style="width:600px; height:500px;"></iframe>
<script>
/*
var obj_url = window.URL.createObjectURL(blob);
var iframe = document.getElementById('viewer');
iframe.setAttribute('src', obj_url);
window.URL.revokeObjectURL(obj_url);
*/
</script>
</body>
</html>