http://mozilla.github.io/pdf.js/getting_started/#download
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="google" content="notranslate">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>ABC</title>
<script>
function openFile () {
var url = "pdf.pdf";
window.open("pdfjs/web/viewer.html?file=" + url);
}
</script>
</head>
<body>
<input type="button" οnclick="openFile()" value="打开">
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="google" content="notranslate">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>ABC</title>
<script>
function openFile () {
var url = "pdf.pdf";
window.open("pdfjs/web/viewer.html?file=" + url);
}
</script>
</head>
<body>
<input type="button" οnclick="openFile()" value="打开">
</body>
</html>