This project is read-only.

Default spacing

Jun 29, 2012 at 9:55 AM


I was wondering if there's a way to define a default spacing, spaceBefore and spaceAfter.
The problem is the following:

I'm working on a Mac using Word. The exported document looks fine, but my collegue is working on a PC.
When he opened de the document it was allmost twice as long.
By adding spaceAfter this problem was solved for the most part, but not completely.
(my document is 18 pages, his 22).

The main reason is the 'addTextBreak'. As far as I know you can't give this function a spacing, so it uses the default word settinga (on a mac: spacing: 1, spaceAfter: 0  - on a PC: spacing: 1.15, spaceafter 10).

Now it's 'fixed' by manually changing the spacing and spaceafter in Word, but this is not a workable solution.
How can this problem be 'really' solved?

If it can't be solved in PHPWord, maybe it's possible to change de default spacing and spaceafter value's in word? You can change them from the 'line-height-menu', but these changes are only saved to the default template (new document), but when I open a 'phpword document' (in which these settings are not defined) Word loads the default setting again (1.15 spacing / 10 spaceAfter).



Aug 22, 2013 at 1:39 PM

do you found a solution? I have the same problem.

See here: