File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 22
22
'width ' => 200 ,
23
23
'height ' => 200 ,
24
24
'align ' => 'center ' ,
25
- 'wrappingStyle ' => \ PhpOffice \PhpWord \Style \Image::WRAPPING_STYLE_BEHIND ,
25
+ 'wrappingStyle ' => PhpOffice \PhpWord \Style \Image::WRAPPING_STYLE_BEHIND ,
26
26
]
27
27
);
28
28
29
-
30
29
function printSeparator (Section $ section ): void
31
30
{
32
31
$ section ->addTextBreak ();
Original file line number Diff line number Diff line change @@ -442,7 +442,6 @@ private function checkImage(): void
442
442
$ this ->imageQuality = null ;
443
443
$ this ->memoryImage = false ;
444
444
$ this ->sourceType = self ::SOURCE_LOCAL ;
445
- // On dimensionne le style en EMU
446
445
$ this ->setProportionalSize ($ actualWidth , $ actualHeight );
447
446
448
447
return ;
@@ -629,8 +628,8 @@ public function getSvgDimensions(string $file): array
629
628
$ svg = $ dom ->documentElement ;
630
629
631
630
// 1) essai sur width/height
632
- $ wAttr = round ($ svg ->getAttribute ('width ' ));
633
- $ hAttr = round ($ svg ->getAttribute ('height ' ));
631
+ $ wAttr = round (( float ) $ svg ->getAttribute ('width ' ));
632
+ $ hAttr = round (( float ) $ svg ->getAttribute ('height ' ));
634
633
635
634
636
635
$ w = (int ) filter_var ($ wAttr , FILTER_SANITIZE_NUMBER_INT );
You can’t perform that action at this time.
0 commit comments