I am generating documents with php in word and pdf format

I am using headers to generate a document in word 

```
header("Content-type: application/vnd.ms-word");
header("Content-Disposition: attachment;Filename=example.doc");
echo "<html>";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=Windows-1252\">";
echo "<body>"; etc etc

```

The wysiwyg is creating the following code to render pagebreaks

```
<div style="page-break-after: always;"><span style="display: none;">&nbsp;</span></div>

```

This html/css is working fine for the pdf output but not the word.

Can someone recommend an alternative method to create page breaks that may work in word.