Hello,
This simple script
$docx = new CreateDocx();
$docx->embedHTML('<h2 style="text-align: center;">test</h2>');
$path = DIR_TMP . getUniqId();
$docx->createDocx($path);
$path .= ".docx";
var_dump(mime_content_type($path));
Return
string(24) "application/octet-stream"
I am using a pdf converter which is strict on the content type, and it refuses application/octet-stream.
Is it possible to get application/vnd.openxmlformats-officedocument.wordprocessingml.document ?
Regards