pc端插件: https://pdfobject.com/
使用:
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> <style> .pdfobject-container { height: 800px;} .pdfobject { border: 1px solid #666; } </style> </head> <body> <div id="example1"></div> <script type="text/javascript" src="../jquery.min.js"></script> <script type="text/javascript" src="./pdfobject.min.js"></script> <script>PDFObject.embed("./demo.pdf", "#example1");</script> </body> </html>