The script successfully creates a temporary folder and manages to get .jpgs from host, but breaks halfway the process of converting each jpg to pdf.
An first extract of the error:
`...
2022-08-30 15:49:57 - Downloaded: page_223.jpg
2022-08-30 15:49:58 - Downloaded: page_224.jpg
2022-08-30 15:49:58 - All pages have been downloaded.
Error converting /tmp/d20220830-6822-11bnqm7/page_105.jpg to PDF.
Error converting /tmp/d20220830-6822-11bnqm7/page_106.jpg to PDF.
...`
The book is 224 pages, all files gets created successfully in temporary folder, checked real-time from nautilus.
The page_105.jpg file is there and is working fine, doesn't even seem corrupted. Output at the end is as follows:
`...
Error converting /tmp/d20220830-6822-11bnqm7/page_221.jpg to PDF.
Error converting /tmp/d20220830-6822-11bnqm7/page_222.jpg to PDF.
Error converting /tmp/d20220830-6822-11bnqm7/page_223.jpg to PDF.
Error converting /tmp/d20220830-6822-11bnqm7/page_224.jpg to PDF.
Error: Unable to find file.
Error: Failed to open PDF file:
/tmp/d20220830-6822-11bnqm7/page_105.jpg.pdf
Errors encountered. No output created.
Done. Input errors, so no output created.
...`
Seems to me that the temporary folder gets deleted while task is running, so it breaks halfway. I know it sounds crazy.
Link I have this error is here
Thanks in advance for support.