Creiamo documenti docx con la seguente funzione:
require ( 'grabzit / lib / GrabzItClient.class.php');
// request ("grabzit / config.php");
$ grabzIt = new GrabzItClient ("... xxx ...");
$ grabzIt->HTMLtoDOCX("alcuni contenuti qui");
header ('Content-Type: application / octet-stream');
header ('Content-Disposition: attachment; filename = "'. $ GLOBALS {TSFE} -> id. '. docx"');
$ GLOBALS ['TSFE'] -> content = $ grabzIt->SaveTo();
I documenti sono saved ma quando viene aperto un docx Word mostra "errore all'apertura del documento ..."
Che cosa può essere sbagliato?