File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/PhpWord/Writer/RTF/Style Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ v0.16.0 (xx xxx 2018)
10
10
### Fixed
11
11
- Fix regex in ` cloneBlock ` function @nicoder #1269
12
12
- HTML Title Writer loses text when Title contains a TextRun instead a string. @begnini #1436
13
+ - RTF writer: Round getPageSizeW and getPageSizeH to avoid decimals @Patrick64 #1493
13
14
14
15
v0.15.0 (14 Jul 2018)
15
16
----------------------
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