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()
4343 $ content .= '\sectd ' ;
4444
4545 // 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 () ));
4848 $ content .= ' ' ;
4949 $ content .= $ this ->getValueIf ($ style ->getMarginTop () !== null , '\margtsxn ' . $ style ->getMarginTop ());
5050 $ content .= $ this ->getValueIf ($ style ->getMarginRight () !== null , '\margrsxn ' . $ style ->getMarginRight ());
You can’t perform that action at this time.
0 commit comments