Default spacing

Jun 29, 2012 at 8:55 AM

Hi,

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).

Thanks,

Marc.

Aug 22, 2013 at 12:39 PM
Hello,

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

See here: https://phpword.codeplex.com/discussions/454183

Greetz