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

feat (gui) : pdf preview in high resolution #290

Closed
timelic opened this issue Dec 19, 2024 · 2 comments
Closed

feat (gui) : pdf preview in high resolution #290

timelic opened this issue Dec 19, 2024 · 2 comments

Comments

@timelic
Copy link
Contributor

timelic commented Dec 19, 2024

改进方法很简单:

# gui.py
preview = PDF(label="Document Preview", visible=True, height=2000) # 设置一个比较大的数值

然后添加一个 CSS:

.pdf-canvas canvas {
    width: 100%;
}
截屏2024-12-19 11 04 09
@Byaidu
Copy link
Owner

Byaidu commented Dec 19, 2024

感谢支持!想问下有兴趣提交pr吗,这样贡献者列表就可以多一位

Repository owner deleted a comment from Issues-translate-bot Dec 19, 2024
@reycn reycn changed the title PDF 预览渲染模糊 feat (gui) : pdf preview in high resolution Dec 19, 2024
@reycn
Copy link
Collaborator

reycn commented Dec 19, 2024

The feature has been implemented in PR#294 by @hellofinch, with all CI tests passed.

@reycn reycn closed this as completed Dec 19, 2024
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

3 participants