<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>预览PDF文档</title>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.media.js"></script>
</head>
<body>
<center>
<div class="panel panel-primary">
<div class="panel-heading" align="center">
<h2>pdf文件预览</h2>
</div>
<div class="panel-body">
<a id="pdf_a" href="pdf1.pdf"></a>
</div>
</center>
<script type="text/javascript">
$(function() {
$('#pdf_a').media({width:800, height:600});
});
</script>
</body>
</html>