Search
Follow Us
Categories
We recently announced a revamped version of the Aspose Cloud Python SDK along with unit tests. Our users have requested a number of features recently and today we are pleased to announce that we’ve enhanced the conversion methods. Now all conversion methods support custom output filenames and file contents as response. The Aspose Cloud Python SDK makes it easy for Python developers to work with Microsoft Word documents, Microsoft Excel spreadsheets, Microsoft PowerPoint presentations, Adobe PDFs, OpenOffice formats, barcodes, OCR and email formats and protocols in their applications.
This new enhancement allows developers to use converted files in memory instead of storing them to local storage and then loading them again. This makes it easier to manipulate the files in memory and store the file as per your requirements.
import asposecloud
from asposecloud.storage import Folder
from asposecloud.pdf import Converter
asposecloud.AsposeApp.app_key = '****'
asposecloud.AsposeApp.app_sid = '****'
fld = Folder()
response = fld.upload_file('./data/test_multi_pages.pdf')
converter = Converter('test_multi_pages.pdf')
response = converter. convert_to_image(1,'png',True)
This feature allows developers to pass an extra parameter to all conversion methods to set output filename. This was the most requested feature recently. This feature bring more convenience to developers who want to use Aspose Cloud SDKs in a more personalized way.
import asposecloud
from asposecloud.storage import Folder
from asposecloud.words import Converter
asposecloud.AsposeApp.app_key = '****'
asposecloud.AsposeApp.app_sid = '****'
fld = Folder()
response = fld.upload_file('./data/test_multi_pages.docx')
converter = Converter('test_multi_pages.docx')
response = converter. convert_to_image('Sheet1','png',False,None,'MyOutputFile.png')
Start a free trial today – all you need is to sign up with Aspose Cloud service. Once you have signed up, you are ready to try powerful file processing features offered by Aspose Cloud.