本文整理汇总了Python中asposecloud.storage.Folder类的典型用法代码示例。如果您正苦于以下问题:Python Folder类的具体用法?Python Folder怎么用?Python Folder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Folder类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: test_convert_additonal_params
def test_convert_additonal_params(self):
folder = Folder()
response = folder.upload_file('./data/test_convert_slide.pptx')
self.assertEqual(True, response)
converter = Converter('test_convert_slide.pptx')
converter.convert('tiff')
开发者ID:vidyarani-dg,项目名称:Aspose_Cloud_SDK_For_Python,代码行数:7,代码来源:test_aspose_slides.py
示例2: test_convert_storage_file
def test_convert_storage_file(self):
folder = Folder()
response = folder.upload_file('./data/test_convert_slide.pptx')
self.assertEqual(True, response)
converter = Converter('test_convert_slide.pptx')
converter.convert(1,'png')
self.assertTrue(os.path.exists('./output/test_convert_slide_1.png'))
开发者ID:AsposeShowcase,项目名称:Aspose_Words_Cloud,代码行数:8,代码来源:test_aspose_slides.py
示例3: test_rotate_image
def test_rotate_image(self):
fld = Folder()
response = fld.upload_file('./data/barcodeQR.png')
self.assertEqual(response, True)
imageObj = Image('barcodeQR.png')
imageObj.rotate_image('rotate270flipnone','/','png')
self.assertEqual(True, os.path.exists('./output/barcodeQR.png'))
开发者ID:AsposeShowcase,项目名称:Aspose_Words_Cloud,代码行数:8,代码来源:test_aspose_imaging.py
示例4: test_convert_tiff_to_fax
def test_convert_tiff_to_fax(self):
fld = Folder()
response = fld.upload_file('./data/barcodeQR.tiff')
self.assertEqual(response, True)
converter = Converter('barcodeQR.tiff')
converter.convert_tiff_to_fax()
self.assertEqual(True, os.path.exists('./output/barcodeQR.tiff'))
开发者ID:AsposeShowcase,项目名称:Aspose_Words_Cloud,代码行数:8,代码来源:test_aspose_imaging.py
示例5: test_resize_image
def test_resize_image(self):
fld = Folder()
response = fld.upload_file('./data/barcodeQR.png')
self.assertEqual(response, True)
imageObj = Image('barcodeQR.png')
imageObj.resize_image('./data/barcodeQR.png',10,10,'barcodeQR.png','png')
self.assertEqual(True, os.path.exists('./output/barcodeQR.png'))
开发者ID:AsposeShowcase,项目名称:Aspose_Words_Cloud,代码行数:8,代码来源:test_aspose_imaging.py
示例6: test_get_aspect_ratio
def test_get_aspect_ratio(self):
folder = Folder()
response = folder.upload_file('./data/test_convert_slide.pptx')
self.assertEqual(True, response)
doc = Extractor('test_convert_slide.pptx')
response = doc.get_aspect_ratio(1)
self.assertNotEquals(False, response)
开发者ID:vidyarani-dg,项目名称:Aspose_Cloud_SDK_For_Python,代码行数:8,代码来源:test_aspose_slides.py
示例7: test_update_tiff_frame
def test_update_tiff_frame(self):
folder = Folder()
response = folder.upload_file('./data/sample.tif')
self.assertEqual(True, response)
img = Image('sample.tif')
response = img.update_tiff_frame(0,{'newWidth':10,'newHeight':10})
self.assertTrue(os.path.exists(response))
开发者ID:vidyarani-dg,项目名称:Aspose_Cloud_SDK_For_Python,代码行数:8,代码来源:test_aspose_imaging.py
示例8: test_get_min_row
def test_get_min_row(self):
folder = Folder()
response = folder.upload_file('./data/split_workbook.xlsx')
self.assertEqual(True, response)
ws = Worksheet('split_workbook.xlsx','Sheet1')
response = ws.get_min_row(0,0);
self.assertEqual(int, type(response))
开发者ID:AsposeShowcase,项目名称:Aspose_Words_Cloud,代码行数:8,代码来源:test_aspose_cells.py
示例9: test_get_tiff_frame_properties
def test_get_tiff_frame_properties(self):
folder = Folder()
response = folder.upload_file('./data/sample.tif')
self.assertEqual(True, response)
doc = Document('sample.tif')
response = doc.get_tiff_frame_properties(0)
self.assertEqual(dict, type(response))
开发者ID:vidyarani-dg,项目名称:Aspose_Cloud_SDK_For_Python,代码行数:8,代码来源:test_aspose_imaging.py
示例10: test_form_fields_count
def test_form_fields_count(self):
folder = Folder()
response = folder.upload_file('./data/test_file_on_storage.pdf')
self.assertEqual(True, response)
doc = Document('test_file_on_storage.pdf')
response = doc.get_form_fields_count()
self.assertEqual(int, type(response))
开发者ID:vidyarani-dg,项目名称:Aspose_Cloud_SDK_For_Python,代码行数:8,代码来源:test_aspose_pdf.py
示例11: test_split_workbook
def test_split_workbook(self):
folder = Folder()
response = folder.upload_file('./data/split_workbook.xlsx')
self.assertEqual(True, response)
wb = Workbook('split_workbook.xlsx')
response = wb.split_workbook('xlsx')
self.assertEqual(list, type(response))
开发者ID:AsposeShowcase,项目名称:Aspose_Words_Cloud,代码行数:8,代码来源:test_aspose_cells.py
示例12: test_delete_all_slides
def test_delete_all_slides(self):
folder = Folder()
response = folder.upload_file('./data/test_convert_slide.pptx')
self.assertEqual(True, response)
doc = Document('test_convert_slide.pptx')
response = doc.delete_all_slides()
self.assertEqual(dict, type(response))
开发者ID:vidyarani-dg,项目名称:Aspose_Cloud_SDK_For_Python,代码行数:8,代码来源:test_aspose_slides.py
示例13: test_crop_image
def test_crop_image(self):
folder = Folder()
response = folder.upload_file('./data/barcodeQR.jpg')
self.assertEqual(True, response)
img = Image('barcodeQR.jpg')
response = img.crop_image(0,0,10,10,'/','jpg')
self.assertTrue(os.path.exists(response))
开发者ID:vidyarani-dg,项目名称:Aspose_Cloud_SDK_For_Python,代码行数:8,代码来源:test_aspose_imaging.py
示例14: test_update_image
def test_update_image(self):
folder = Folder()
response = folder.upload_file('./data/barcodeQR.jpg')
self.assertEqual(True, response)
img = Image('barcodeQR.jpg')
response = img.update_image({'newWidth': 20, 'newHeight': 20},'jpg')
self.assertTrue(os.path.exists(response))
开发者ID:vidyarani-dg,项目名称:Aspose_Cloud_SDK_For_Python,代码行数:8,代码来源:test_aspose_imaging.py
示例15: test_split_pdf
def test_split_pdf(self):
folder = Folder()
response = folder.upload_file('./data/test_file_on_storage.pdf')
self.assertEqual(True, response)
doc = Document('test_file_on_storage.pdf')
response = doc.split_pdf()
self.assertEqual(dict, type(response))
开发者ID:vidyarani-dg,项目名称:Aspose_Cloud_SDK_For_Python,代码行数:8,代码来源:test_aspose_pdf.py
示例16: test_update_tiff_properties
def test_update_tiff_properties(self):
folder = Folder()
response = folder.upload_file('./data/barcodeQR.tiff')
self.assertEqual(True, response)
doc = Document('barcodeQR.tiff')
response = doc.update_tiff_properties(1,'ccittfax3','inch',300,300,96,96,'')
self.assertTrue(os.path.exists(response))
开发者ID:vidyarani-dg,项目名称:Aspose_Cloud_SDK_For_Python,代码行数:8,代码来源:test_aspose_imaging.py
示例17: test_rotate_tiff_frame
def test_rotate_tiff_frame(self):
folder = Folder()
response = folder.upload_file('./data/sample.tif')
self.assertEqual(True, response)
img = Image('sample.tif')
response = img.rotate_tiff_frame(0,'rotate90flipnone','/')
self.assertTrue(os.path.exists(response))
开发者ID:vidyarani-dg,项目名称:Aspose_Cloud_SDK_For_Python,代码行数:8,代码来源:test_aspose_imaging.py
示例18: test_get_background
def test_get_background(self):
folder = Folder()
response = folder.upload_file('./data/test_convert_slide.pptx')
self.assertEqual(True, response)
doc = Document('test_convert_slide.pptx')
response = doc.get_background(1)
self.assertNotEquals(False, response)
开发者ID:vidyarani-dg,项目名称:Aspose_Cloud_SDK_For_Python,代码行数:8,代码来源:test_aspose_slides.py
示例19: test_split_presentation
def test_split_presentation(self):
folder = Folder()
response = folder.upload_file('./data/test_convert_slide.pptx')
self.assertEqual(True, response)
doc = Document('test_convert_slide.pptx')
response = doc.split_presentation(1,1)
self.assertEqual(dict, type(response))
开发者ID:vidyarani-dg,项目名称:Aspose_Cloud_SDK_For_Python,代码行数:8,代码来源:test_aspose_slides.py
示例20: test_crop_tiff_frame
def test_crop_tiff_frame(self):
folder = Folder()
response = folder.upload_file('./data/sample.tif')
self.assertEqual(True, response)
img = Image('sample.tif')
response = img.crop_tiff_frame(0,0,0,100,100,'/')
self.assertTrue(os.path.exists(response))
开发者ID:vidyarani-dg,项目名称:Aspose_Cloud_SDK_For_Python,代码行数:8,代码来源:test_aspose_imaging.py
注:本文中的asposecloud.storage.Folder类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论