I’ve been attempting to evaluate the Aspose Cloud family PHP SDK for manipulating MSWord docs and here is my experience so far (TL;DR: it’s bad).
The Append Multiple Word Documents sample code makes no sense:
-
It looks like it’s uploading sample.docx and then trying to append the same document to itself - and it doesn’t work.
-
If I change the $requestDocument filename and use a different $requestDocumentListDocumentEntries0 filename in my storage - it still doesn’t work and generates a PHP notice:
PHP Notice: Undefined index: Content-Type in /workspace/aspose/vendor/aspose-cloud/aspose-words-cloud/src/Aspose/Words/ObjectSerializer.php on line 112 null
-
The API logs are of no help - there is no HH:MM:SS timestamp so I’m being forced to refresh and then open the latest log to see if the Request Start Date matches my latest API call
-
The API log Input data seems to have holes in it:
Input Data:{ "name": "" "path": "<redacted>" "storage": "" "extension": "" "type": "Docx" "header": "" "size": "11370" }
I would have expected ‘name’ to have been set at least -
The output data makes no sense either
{ "name":"" "path":"<redacted>" "storage":"" "extension":"" "type":"Docx" "header":"" "size":"11370" } { "name":"" "path":"<redacted>" "storage":"" "extension":"" "type":"Docx" "header":"" "size":"12654" }
Why are there two objects? Again - it seems likename
should match document names supplied in the API call - but the fields are empty.
Also, if this is JSON it’s incorrect it should be in the form: [{},{}].
Also, the sample code API call is returning a 200 status code - but it clearly isn’t working.
- The files tab of the dashboard doesn’t list the time a document was changed making it difficult to see if any of my API calls have resulted in a change to one of the documents without downloading it and opening it.