Skip to content

Commit a0636ba

Browse files
committed
Add PostFitTallToPages and PostFitWideToPages, fix spelling mistakes for several functions, and Optimize save options about paginated.
1 parent f118254 commit a0636ba

File tree

1,445 files changed

+9867
-6530
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,445 files changed

+9867
-6530
lines changed

Examples/AuthUtil.py

Lines changed: 0 additions & 30 deletions
This file was deleted.

Examples/Example_CopyFile.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import os
2+
import sys
3+
from asposecellscloud.apis.cells_api import CellsApi
4+
from asposecellscloud.models import *
5+
from asposecellscloud.requests import *
6+
7+
api = CellsApi(os.getenv('CellsCloudClientId'),os.getenv('CellsCloudClientSecret'),"v3.0",os.getenv('CellsCloudApiBaseUrl'))
8+
remote_folder = 'TestData/In'
9+
10+
local_name = 'Book1.xlsx'
11+
remote_name = 'Book1.xlsx'
12+
13+
mapFiles = {
14+
local_name: local_name
15+
}
16+
request = UploadFileRequest( mapFiles, remote_folder + '/' + remote_name,storage_name= '')
17+
api.upload_file(request)
18+
19+
request = CopyFileRequest( remote_folder + '/' + remote_name, 'OutResult/' + remote_name,src_storage_name= '',dest_storage_name= '',version_id= '')
20+
api.copy_file(request)

Examples/Example_CopyFolder.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import os
2+
import sys
3+
from asposecellscloud.apis.cells_api import CellsApi
4+
from asposecellscloud.models import *
5+
from asposecellscloud.requests import *
6+
7+
api = CellsApi(os.getenv('CellsCloudClientId'),os.getenv('CellsCloudClientSecret'),"v3.0",os.getenv('CellsCloudApiBaseUrl'))
8+
remote_folder = 'TestData/In'
9+
10+
local_name = 'Book1.xlsx'
11+
remote_name = 'Book1.xlsx'
12+
13+
mapFiles = {
14+
local_name: local_name
15+
}
16+
request = UploadFileRequest( mapFiles, remote_folder + '/' + remote_name,storage_name= '')
17+
api.upload_file(request)
18+
19+
request = CopyFolderRequest( remote_folder, 'OutResult/Create',src_storage_name= '',dest_storage_name= '')
20+
api.copy_folder(request)

Examples/Example_CreateFolder.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import os
2+
import sys
3+
from asposecellscloud.apis.cells_api import CellsApi
4+
from asposecellscloud.models import *
5+
from asposecellscloud.requests import *
6+
7+
api = CellsApi(os.getenv('CellsCloudClientId'),os.getenv('CellsCloudClientSecret'),"v3.0",os.getenv('CellsCloudApiBaseUrl'))
8+
remote_folder = 'TestData/In'
9+
10+
local_name = 'Book1.xlsx'
11+
remote_name = 'Book1.xlsx'
12+
13+
mapFiles = {
14+
local_name: local_name
15+
}
16+
request = UploadFileRequest( mapFiles, remote_folder + '/' + remote_name,storage_name= '')
17+
api.upload_file(request)
18+
19+
request = CreateFolderRequest( 'OutResult/NewFolder',storage_name= '')
20+
api.create_folder(request)
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import os
2+
import sys
3+
from asposecellscloud.apis.cells_api import CellsApi
4+
from asposecellscloud.models import *
5+
from asposecellscloud.requests import *
6+
7+
api = CellsApi(os.getenv('CellsCloudClientId'),os.getenv('CellsCloudClientSecret'),"v3.0",os.getenv('CellsCloudApiBaseUrl'))
8+
remote_folder = 'TestData/In'
9+
10+
local_name = 'Book1.xlsx'
11+
remote_name = 'Book1.xlsx'
12+
13+
encryption = WorkbookEncryptionRequest(password= '123456' ,encryption_type= 'XOR' ,key_length= 128 )
14+
mapFiles = {
15+
local_name: local_name
16+
}
17+
request = UploadFileRequest( mapFiles, remote_folder + '/' + remote_name,storage_name= '')
18+
api.upload_file(request)
19+
20+
request = DeleteDecryptWorkbookRequest( remote_name, encryption,folder= remote_folder,storage_name= '')
21+
api.delete_decrypt_workbook(request)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import os
2+
import sys
3+
from asposecellscloud.apis.cells_api import CellsApi
4+
from asposecellscloud.models import *
5+
from asposecellscloud.requests import *
6+
7+
api = CellsApi(os.getenv('CellsCloudClientId'),os.getenv('CellsCloudClientSecret'),"v3.0",os.getenv('CellsCloudApiBaseUrl'))
8+
remote_folder = 'TestData/In'
9+
10+
local_name = 'Book1.xlsx'
11+
remote_name = 'Book1.xlsx'
12+
13+
mapFiles = {
14+
local_name: local_name
15+
}
16+
request = UploadFileRequest( mapFiles, remote_folder + '/' + remote_name,storage_name= '')
17+
api.upload_file(request)
18+
19+
request = DeleteDocumentPropertiesRequest( remote_name,folder= remote_folder,storage_name= '')
20+
api.delete_document_properties(request)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import os
2+
import sys
3+
from asposecellscloud.apis.cells_api import CellsApi
4+
from asposecellscloud.models import *
5+
from asposecellscloud.requests import *
6+
7+
api = CellsApi(os.getenv('CellsCloudClientId'),os.getenv('CellsCloudClientSecret'),"v3.0",os.getenv('CellsCloudApiBaseUrl'))
8+
remote_folder = 'TestData/In'
9+
10+
local_name = 'Book1.xlsx'
11+
remote_name = 'Book1.xlsx'
12+
13+
mapFiles = {
14+
local_name: local_name
15+
}
16+
request = UploadFileRequest( mapFiles, remote_folder + '/' + remote_name,storage_name= '')
17+
api.upload_file(request)
18+
19+
request = DeleteDocumentPropertyRequest( remote_name, 'Author',type= 'All',folder= remote_folder,storage_name= '')
20+
api.delete_document_property(request)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import os
2+
import sys
3+
from asposecellscloud.apis.cells_api import CellsApi
4+
from asposecellscloud.models import *
5+
from asposecellscloud.requests import *
6+
7+
api = CellsApi(os.getenv('CellsCloudClientId'),os.getenv('CellsCloudClientSecret'),"v3.0",os.getenv('CellsCloudApiBaseUrl'))
8+
remote_folder = 'TestData/In'
9+
10+
local_name = 'Book1.xlsx'
11+
remote_name = 'Book1.xlsx'
12+
13+
mapFiles = {
14+
local_name: local_name
15+
}
16+
request = UploadFileRequest( mapFiles, remote_folder + '/' + remote_name,storage_name= '')
17+
api.upload_file(request)
18+
19+
request = DeleteDocumentUnProtectFromChangesRequest( remote_name,folder= remote_folder,storage_name= '')
20+
api.delete_document_un_protect_from_changes(request)

Examples/Example_DeleteFile.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import os
2+
import sys
3+
from asposecellscloud.apis.cells_api import CellsApi
4+
from asposecellscloud.models import *
5+
from asposecellscloud.requests import *
6+
7+
api = CellsApi(os.getenv('CellsCloudClientId'),os.getenv('CellsCloudClientSecret'),"v3.0",os.getenv('CellsCloudApiBaseUrl'))
8+
remote_folder = 'TestData/In'
9+
10+
local_name = 'Book1.xlsx'
11+
remote_name = 'Book1.xlsx'
12+
13+
mapFiles = {
14+
local_name: local_name
15+
}
16+
request = UploadFileRequest( mapFiles, remote_folder + '/' + remote_name,storage_name= '')
17+
api.upload_file(request)
18+
19+
request = DeleteFileRequest( remote_folder + '/' + remote_name,storage_name= '',version_id= '')
20+
api.delete_file(request)

Examples/Example_DeleteFolder.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import os
2+
import sys
3+
from asposecellscloud.apis.cells_api import CellsApi
4+
from asposecellscloud.models import *
5+
from asposecellscloud.requests import *
6+
7+
api = CellsApi(os.getenv('CellsCloudClientId'),os.getenv('CellsCloudClientSecret'),"v3.0",os.getenv('CellsCloudApiBaseUrl'))
8+
remote_folder = 'TestData/In'
9+
10+
local_name = 'Book1.xlsx'
11+
remote_name = 'Book1.xlsx'
12+
13+
mapFiles = {
14+
local_name: local_name
15+
}
16+
request = UploadFileRequest( mapFiles, remote_folder + '/' + remote_name,storage_name= '')
17+
api.upload_file(request)
18+
19+
request = DeleteFolderRequest( 'OutResult/Create',storage_name= '',recursive= True)
20+
api.delete_folder(request)

0 commit comments

Comments
 (0)