把下载的图片转为PDF文件,方便查看 #231
Guoziqi329
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
感谢你的建议,我的初步想法,不太会加这么一个函数,而是通过插件的形式来支持用户的功能,这样做可扩展性、灵活性、可配置性都是最好的。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
非常感谢你提供的img2pdf库,我上手了下,非常好用👍 下面是插件配置: plugins:
after_photo:
# 把章节的所有图片合并为一个pdf的插件
# 使用前需要安装依赖库: [pip install img2pdf]
- plugin: img2pdf
kwargs:
pdf_dir: D:/pdf/ # pdf存放文件夹
filename_rule: Pid # pdf命名规则 希望你满意此插件 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
通过此程序下载的图片是webp格式的,这使得一些设备查看起来非常麻烦,比如说win7电脑,我希望能添加一个函数不仅能下载webp文件,还能直接把所有图片转成一个pdf文档,这样在老设备上查看跟简单一些。以下是我写过的一个webp转pdf的函数,您可以参考一下:
Beta Was this translation helpful? Give feedback.
All reactions