This is an easy and powerful tool for quick extraction of PDF cover photo + converting it into png You can use it in two ways... First of all put the PDF file with PDF_cover_extractor.py in one folder and open terminal in that folder
1 - You can just run it (python3 PDF_cover_extractor.py
) and then when program asks, type the file name
2 - You can give argument (the file name) directly from the terminal -> python3 PDF_cover_extractor.py sample.pdf