File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/PhpWord/Writer/RTF/Style Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ public function write()
43
43
$ content .= '\sectd ' ;
44
44
45
45
// Size & margin
46
- $ content .= $ this ->getValueIf ($ style ->getPageSizeW () !== null , '\pgwsxn ' . $ style ->getPageSizeW ());
47
- $ content .= $ this ->getValueIf ($ style ->getPageSizeH () !== null , '\pghsxn ' . $ style ->getPageSizeH ());
46
+ $ content .= $ this ->getValueIf ($ style ->getPageSizeW () !== null , '\pgwsxn ' . round ( $ style ->getPageSizeW () ));
47
+ $ content .= $ this ->getValueIf ($ style ->getPageSizeH () !== null , '\pghsxn ' . round ( $ style ->getPageSizeH () ));
48
48
$ content .= ' ' ;
49
49
$ content .= $ this ->getValueIf ($ style ->getMarginTop () !== null , '\margtsxn ' . $ style ->getMarginTop ());
50
50
$ content .= $ this ->getValueIf ($ style ->getMarginRight () !== null , '\margrsxn ' . $ style ->getMarginRight ());
You can’t perform that action at this time.
0 commit comments