Ruby 项目依赖于 wicked_pdf 和 pdfkit 可能要考虑迁移到别的库了

wokenqingtian · December 30, 2022 · Last by Rei replied at January 16, 2023 · 740 hits

wicked_pdfpdfkit 都依赖于 wkhtmltopdf

wkhtmltopdf 已经基本停止维护了

而 wkhtmltopdf 停止维护是因为 qtwebkit 无人维护了

而 qtwebkit 被 WebKit 抛弃以后,一直是一位俄罗斯程序员 (annulen) 在维护。 但是他的 IP 这两年被 QT 给禁了,他就停止维护了。 他把自己的捐赠渠道也给拿下来了, 彻底不干了这是。 貌似也没有人接手,2 年没发版了

这里也有一些讨论:https://github.com/qutebrowser/qutebrowser/issues/4039 看起来大家不是已经迁移就是在迁移的路上了

wkhtmltopdf 的 maintainer 也在 wicked_pdf 的一个 issue 里表示应该抛弃 wkhtmltopdf 了

至于替代品,我暂时只找到一个: https://github.com/studiosity/grover

感谢提醒

Reply to Rei

请问有没有 docker 中安装 chrome 的建议吗?

Reply to zhongsheng

之前写过篇 blog https://ruby-china.org/topics/42716

安装部分:

apt-get install chromium fonts-noto-cjk
You need to Sign in before reply, if you don't have an account, please Sign up first.