File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -53,19 +53,6 @@ def upload_document(self):
53
53
except Exception as e :
54
54
logging .error (f"upload_document(): Failed to upload file: { e } " )
55
55
56
- def download_result (self ):
57
- """ Download the processed PDF document from the Aspose Cloud server. """
58
- if not self ._ensure_api_initialized ():
59
- return
60
-
61
- try :
62
- file_path = self .pdf_api .download_file (Config .PDF_DOCUMENT_NAME )
63
- local_path = Config .LOCAL_FOLDER / Config .LOCAL_RESULT_DOCUMENT_NAME
64
- shutil .move (file_path , str (local_path ))
65
- logging .info (f"download_result(): File successfully downloaded: { local_path } " )
66
- except Exception as e :
67
- logging .error (f"download_result(): Failed to download file: { e } " )
68
-
69
56
def get_page_info (self ):
70
57
""" Get page information of the PDF document. """
71
58
if not self ._ensure_api_initialized ():
@@ -96,4 +83,4 @@ def get_page_as_png(self):
96
83
pdf_pages = PdfPages ()
97
84
pdf_pages .upload_document ()
98
85
pdf_pages .get_page_info ()
99
- pdf_pages .get_page_as_png ()
86
+ pdf_pages .get_page_as_png ()
You can’t perform that action at this time.
0 commit comments