This post: https://forum.aspose.com/t/how-to-create-template-document-using-aspose/120045/3 suggests that it is possible to create a new document based on a dotx template.
However, PHP API only accepts the new filename as a parameter:
$createRequest = new CreateDocumentRequest(
"Sample.docx", NULL, NULL);
$wordsApi->createDocument($createRequest);
How do I create a new document based on a dotx template (which is stored in my online storage)?
I then need to append some html formatted text - other APIs seem to have a builder object:
builder.InsertHtml("<b>Format this as bold</b>")
but the PHP API doesn’t.