Examples and some Advices

This commit is contained in:
bipinkrish
2023-04-09 16:28:59 +05:30
parent fce682d021
commit d8030a5e22
3 changed files with 36 additions and 0 deletions

View File

@@ -51,6 +51,9 @@ def main(acsmFile, outputFilename):
print()
# decrypt
if encryptedFile is None:
print("Failed to Download, try decrypting from ACSM file")
return
if encryptedFile.endswith(".pdf"):
decryptedFile = decryptPDF(encryptedFile)
elif encryptedFile.endswith(".epub"):