Hi. I have flutter code like:
void convertToPdf(String file,String name,String ext)async{
var configuration = Configuration(’, ‘’);
var wordsApi = WordsApi(configuration);
var localFileContent = await (File(file).readAsBytes());
var uploadRequest = UploadFileRequest(ByteData.view(localFileContent.buffer), 'fileStoredInCloud.docx');
final res = await wordsApi.uploadFile(uploadRequest);
var saveOptionsData = SaveOptionsData()
..saveFormat = 'pdf'
..fileName = '${authInstance.currentUser.uid}/${name}.pdf';
var saveAsRequest = SaveAsRequest('fileStoredInCloud.docx', saveOptionsData);
final res2 = await wordsApi.saveAs(saveAsRequest);
print('111${res2.saveResult.destDocument.href}');
print('111${res.uploaded}');
}
But how i can get converted pdf file from your server with flutter SDK. And how i can get total pages of converted PDF file?