Appearance
js如何获取pdf文件的高度和宽度
本节目标:理解“js如何获取pdf文件的高度和宽度”的核心思路,并能把它用于实际开发或面试表达。 所属栏目: 网站开发 | 更新时间:2017-7-10 | 阅读:2985 次 <html> <body> <a href="javascript:getPDFSIZE();">click</a> <br/> </body> <script> var img= new Image(); img.src = "http://xxxx.pdf";//pdf地址 function getPDFSIZE(){ alert(img.width + "__" +img.height); } </script> </html> > 来自 <http://www.mwkj.net/post/667>
