We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f12c3c7 commit f961136Copy full SHA for f961136
Uses-Cases/Pages/remove/removePage.py
@@ -47,9 +47,9 @@ def download_result(self):
47
""" Download the processed PDF document from the Aspose Cloud server. """
48
if self.pdf_api:
49
try:
50
- file_path = self.pdf_api.download_file(Config.PDF_DOCUMENT_NAME)
+ temp_file = self.pdf_api.download_file(Config.PDF_DOCUMENT_NAME)
51
local_path = Config.LOCAL_FOLDER / Config.LOCAL_RESULT_DOCUMENT_NAME
52
- shutil.move(file_path, str(local_path))
+ shutil.move(temp_file, str(local_path))
53
logging.info(f"download_result(): File successfully downloaded: {local_path}")
54
except Exception as e:
55
logging.error(f"download_result(): Failed to download file: {e}")
0 commit comments