没有全视图的mozilla pdf.js [英] mozilla pdf.js without fullview

查看:143
本文介绍了没有全视图的mozilla pdf.js的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢这个pdf查看器 https://github.com/mozilla/pdf.js/演示: http://mozilla.github.com/pdf.js/web /viewer.html 我想在div中打开它(例如400px宽),该怎么办?现在,我只能看到该查看器的完整视图.

I liked this pdf viewer https://github.com/mozilla/pdf.js/ Demo: http://mozilla.github.com/pdf.js/web/viewer.html I want to open this in a div (say 400px width) How can I do that? Right now I am seeing only full view of this viewer.

推荐答案

最好的方法是使用iframe(如果您的意思是这样). 您想看到该页面插入您的页面吗?

The best way is with a iframe, if it is what you mean. You want to see that page inserted on your page?

如果使用它,请设置并设置size和scroolbars属性以在所需的尺寸上看到它,我认为有src属性,您可以在其中放置网址.

If its, use and set the size and scroolbars properties to see it on the size that you want, there is the property src i think where you can put the url.

这篇关于没有全视图的mozilla pdf.js的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆