-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
img2pdf not able to converty #109
Comments
Running the "pip install -r requirements.txt" command again solved the issue for me. |
I have the same issue. Unfortunately, running the "pip install -r requirements.txt" command again didn't help. |
Same issue here. Looksl ike the jpg images are actually downloaded, but the PDF is not created. Details
|
Fixes MiniGlome#109
Fixes MiniGlome#109
Got it figured out in #120. Here's a link to the fixed version: |
C:\Users\Lucas> python "C:\Users\Lucas\Archive.org-Downloader\archive-org-downloader.py" -e "EMAIL@SITE" -p "PASSWORD!" -r 0 -u "https://archive.org/details/bibletarot0000cori/"
1 Book(s) to download
[+] Successful login
Current book: https://archive.org/details/bibletarot0000cori
[+] Successful loan
[+] Found 292 pages
Downloading pages...
100%|████████████████████████████████████████████████████████████████████████████████| 292/292 [00:24<00:00, 12.04it/s]
Traceback (most recent call last):
File "C:\Users\Lucas\Archive.org-Downloader\archive-org-downloader.py", line 267, in
pdf = img2pdf.convert(images, **pdfmeta)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Lucas\AppData\Roaming\Python\Python312\site-packages\img2pdf.py", line 2651, in convert
pdf = pdfdoc(
^^^^^^^
File "C:\Users\Lucas\AppData\Roaming\Python\Python312\site-packages\img2pdf.py", line 742, in init
v = ("D:" + datetime_to_pdfdate(v)).encode("ascii")
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Lucas\AppData\Roaming\Python\Python312\site-packages\img2pdf.py", line 725, in datetime_to_pdfdate
return dt.astimezone(tz=timezone.utc).strftime("%Y%m%d%H%M%SZ")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 22] Invalid argument
I am able to call img2pdf on cmd but when Archive downloader tries it fails
The text was updated successfully, but these errors were encountered: