I have been using the cloud below and it has produced no errors yet there is also no outputted epub file. Am I missing something? Can someone please explain?
import asposewordscloud
from asposewordscloud.apis.words_api import WordsApi
words_api = WordsApi(client_id = ‘SECRET, client_secret = ‘SECRET’)
doc = open(‘Input.pdf’, 'rb')
request = asposewordscloud.models.requests.ConvertDocumentRequest(document=doc, format='epub')
convert = words_api.convert_document(request)
I tried the above code and was expected a sign or something to show me that it has actually worked.
Please note that the convert_document API method returns an output file in response, so you need to save the output from the response as follows:
Python convert PDF to EPUB
P.S: I am a developer evangelist at aspose.cloud.