During a period of magazine advertising, publishers offered a copy of the magazine for free on an online reading site: Calaméo. Unfortunately, if the person uploading the file to the site does not offer the download, the document cannot be read offline.
It is by starting from this principle and by failing with the other proposed methods, that I decided to build a shell and a batch script in order to:
- download all the images of the file proposed for reading
- merge the images in a PDF file
- allow the final PDF to be downloaded from any device (by FTP and deposit on a free server)
- all in one action!
In the end, in about 1 min for ~40 images (pages), you get your file ready to view and store wherever you want!
- UNIX : see all the details delow
- WINDOWS (1) : use the script 'down_img_win.bat', run as administrator and answer the questions
- WINDOWS (2) : use the executable file 'img-downloader.exe' which is the same thing but does not require any special skills except double-clicking on the file
- WINDOWS (3) : use a virtual machine to run the above UNIX script (TUTORIAL link)
Here are the packages that will be installed from the script (dependencies are not listed): img2pdf
and rename
.
curl -o "down_img.sh" https://framagit.org/downloader-s/img-downloader/-/raw/master/down_img.sh
chmod u+x down_img.sh
"Basically" and interactively. Simply run the script and answer the questions.
./down_img.sh
It may be necessary in the future to update this script : it is important to do this regularly in order to keep a stable version and take advantage of all the features. To do this, simply re-download the script from step Download the script.
Ressources used :
- Git / Package
- img2pdf / Package
- curl / Package
- rename / Package
- Link to the free server / Server