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 这个功能 #35

Open
hugeorange opened this issue Jul 31, 2022 · 3 comments
Open

想请教导出 pdf 这个功能 #35

hugeorange opened this issue Jul 31, 2022 · 3 comments

Comments

@hugeorange
Copy link

如题:想请教一下导出 pdf 这个功能为什么不直接调用 window.print() 实现,而交由 puppeteer 在服务端实现呢?
如果使用 window.print() 那些分页算法就完全不需要了

@hua1995116
Copy link
Owner

window.print() 对于用户的心智负担太重了,其一步骤非常繁琐,其二前端渲染也会因为各种环境插件的原因导致渲染不一致,其三html -> pdf 也会随着布局导出形态的差异,会非常难调。

@lin666999
Copy link

为什么docker部署后不能导出pdf

@jinyule
Copy link

jinyule commented Nov 1, 2023

请教一下,现在不能导出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