Hi Paul,
Thanks for your inquiry. Could please attach the input Word document file here in this thread? We will take a closer look and guide you accordingly.
Hi Paul,
Thank you for sharing a sample document. I tested your document against the Aspose cloud service. I’m sorry to share with you that I’m unable to reproduce the problem. I’m attaching a sample application for your reference. Please try this application on your side and let me know your feedback. It is working perfect on my side. Please follow up these steps:
1) Open web browser and browse following URL
http:///ConvertDocumentUsingSDK/index.php
2) Enter App Key and App SID
3) Browse input file from your computer
4) Select output file format
5) Click “Submit” button
6) Save output file to disk
Hi,
Thank you for your reply. I will investigate and revert.
Regards,
Paul
@paulmanjanja
As an update please note we have made a lot of changes in the latest API Version V4.0. Please find the updated sample PHP code using Aspose.Words Cloud SDK for PHP. Please feel free to contact us if you need any help in this regard.
try {
//TODO: Get your ClientID and ClientSecret at https://dashboard.aspose.cloud (free registration is required).
$ClientSecret="xxxxxxxxxxxxxxxxxx";
$ClientID="xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx";
$wordsApi = new Aspose\Words\WordsApi($ClientID,$ClientSecret);
$format = "pdf";
$file = ("C:/Temp/02_pages.docx");
$request = new Aspose\Words\Model\Requests\ConvertDocumentRequest($file, $format,null);
$result = $wordsApi->ConvertDocument($request);
copy($result->getPathName(),"02_pages.pdf");
//print_r($result->getPathName());
} catch (Exception $e) {
echo "Something went wrong: ", $e->getMessage(), "\n";
PHP_EOL;
}