Forum


Replies: 4   Views: 1972
Problemas con el corrector ortográfico en los documentos generados
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by rmartinez  · 21-03-2019 - 08:37

Hola.

He revisado el settings.xml de mi docx tiene: <w:proofState w:spelling="clean" w:grammar="clean"/>

He incluido el siguiente código antes de createDocxAndDownload y ahora, el corrector, funciona correctamente

$settings = array(
        'customSetting' => array(
                'tag' => 'proofState',
                'values' => array('w:grammar' => 'dirty', 'w:spelling' => 'dirty'),
        )
);
$docx->docxSettings($settings);

Gracias.

Saludos.