Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pdf 只能渲染出来5页 #260

Open
Mrmore opened this issue Mar 28, 2024 · 6 comments
Open

pdf 只能渲染出来5页 #260

Mrmore opened this issue Mar 28, 2024 · 6 comments

Comments

@Mrmore
Copy link

Mrmore commented Mar 28, 2024

"@vue-office/pdf": "^1.6.5"

一共14页 渲染出来只有前5页 是不是有分页参数 或者 页数限制的参数
企管法规部通报(12.4).pdf

@501351981
Copy link
Owner

不会,配置lazy=true?,

@501351981
Copy link
Owner

看官方demo,不是可以查看全部吗

@Mrmore
Copy link
Author

Mrmore commented Mar 28, 2024

耽误您时间了 我是配置过 也看过文档了 lazy=true 也配置在options对象里了 也在您的在线DEMO上 也验证了一次,才来问的问题。打扰您了 我自己在试试吧 谢谢了
刚刚又试过了 lazy: false 是好用的 原来我一直为true 启用 您这个 分页懒加载属性 应该是为true逻辑稍有问题吧 打扰到您了

@501351981
Copy link
Owner

看看把父元素设置为固定高度吧,overflow:Scroll,可能没有获取到滚动事件

@zfc1996
Copy link

zfc1996 commented Apr 25, 2024

我也是碰到了这个问题,请问怎么解决的?

@zhangzihu
Copy link

滚动事件是挂载在vue-office-pdf元素上的,给vue-office-pdf或父级元素设置固定高度就可以了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants