Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

pdf不能生成 #55

Open
waynevan opened this issue Feb 6, 2020 · 15 comments
Open

pdf不能生成 #55

waynevan opened this issue Feb 6, 2020 · 15 comments
Labels
bug Something isn't working

Comments

@waynevan
Copy link

waynevan commented Feb 6, 2020

2020-02-06_20-22-35

@kajweb
Copy link
Owner

kajweb commented Feb 6, 2020

只有一本不行还是普遍不行?

@waynevan
Copy link
Author

waynevan commented Feb 6, 2020

下了两本 都不行

@kajweb
Copy link
Owner

kajweb commented Feb 6, 2020

看看有没有下载到空白的图片。感觉是pdf的库的问题

@waynevan
Copy link
Author

waynevan commented Feb 6, 2020

https://www.lanzous.com/i93wjha
你在你电脑上试试

@kajweb
Copy link
Owner

kajweb commented Feb 6, 2020

好巧,我试过我也不行,。

@kajweb kajweb added the bug Something isn't working label Feb 6, 2020
@kajweb
Copy link
Owner

kajweb commented Feb 6, 2020

我看看是哪里出了问题……

@darkness112
Copy link

我用批量下载后会把几本书都输出到一个pdf文件里面

@kajweb
Copy link
Owner

kajweb commented Feb 6, 2020

我用批量下载后会把几本书都输出到一个pdf文件里面

用哪个命令下载的呢

@darkness112
Copy link

D:\Anaconda3\python.exe D:/python/work/book/main_mult.py
请输入需要下载的bid(以间隔):3208838 3208806 3209047 3206842 3207371

@darkness112
Copy link

image
第一本是正常的,后面就会一直累加

@kajweb
Copy link
Owner

kajweb commented Feb 6, 2020

D:\Anaconda3\python.exe D:/python/work/book/main_mult.py
请输入需要下载的bid(以间隔):3208838 3208806 3209047 3206842 3207371

收到,麻烦重新开一个Issues

@kajweb kajweb closed this as completed Feb 6, 2020
@kajweb
Copy link
Owner

kajweb commented Feb 6, 2020

D:\Anaconda3\python.exe D:/python/work/book/main_mult.py
请输入需要下载的bid(以间隔):3208838 3208806 3209047 3206842 3207371

收到,麻烦重新开一个Issues

@kajweb kajweb reopened this Feb 6, 2020
@kajweb
Copy link
Owner

kajweb commented Feb 6, 2020

image
第一本是正常的,后面就会一直累加

现在您先用多个下载完后,发现异常再用单个下载处理一下PDF就好了。

@BillXuce
Copy link
Collaborator

BillXuce commented Feb 7, 2020

原因是网站上获取到的图片有可能是png格式的图片。但是本工具在保存时仍然以jpg为扩展名。
commit 427e20c 已经解决,但是需要你重新下载,比较费时。推荐你使用批量png转jpg图片的工具把图片格式都转换好,保持原文件名不变,重新运行脚本,就可以完成pdf的制作。

@kajweb
Copy link
Owner

kajweb commented Feb 7, 2020

我看content-type是jpeg,所以就弄jpg为后缀名了……
之前以为img2pdf可以识别……

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants