質問編集履歴
2
補足修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -46,9 +46,11 @@
|
|
46
46
|
|
47
47
|
```php
|
48
48
|
|
49
|
+
$phpPres = new PhpPresentation();
|
50
|
+
|
49
51
|
$slide = $phpPres->createSlide();
|
50
52
|
|
51
|
-
$tableShape = $slide->createTableShape(
|
53
|
+
$tableShape = $slide->createTableShape(2);
|
52
54
|
|
53
55
|
$row = $tableShape->createRow();
|
54
56
|
|
@@ -56,13 +58,13 @@
|
|
56
58
|
|
57
59
|
$cellA1->getActiveParagraph()->getAlignment()
|
58
60
|
|
59
|
-
->setMarginBottom(20)
|
61
|
+
->setMarginBottom(20)
|
60
62
|
|
61
|
-
->setMarginLeft(40)
|
63
|
+
->setMarginLeft(40)
|
62
64
|
|
63
|
-
->setMarginRight(60)
|
65
|
+
->setMarginRight(60)
|
64
66
|
|
65
|
-
->setMarginTop(80);
|
67
|
+
->setMarginTop(80);
|
66
68
|
|
67
69
|
$cellA1->setWidth(100);
|
68
70
|
|
1
補足の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -33,3 +33,39 @@
|
|
33
33
|
PHP 7.2.8
|
34
34
|
|
35
35
|
cakePHP 3.6
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
### 補足
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
#### 実行したコード
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
```php
|
48
|
+
|
49
|
+
$slide = $phpPres->createSlide();
|
50
|
+
|
51
|
+
$tableShape = $slide->createTableShape(3);
|
52
|
+
|
53
|
+
$row = $tableShape->createRow();
|
54
|
+
|
55
|
+
$cellA1 = $row->nextCell();
|
56
|
+
|
57
|
+
$cellA1->getActiveParagraph()->getAlignment()
|
58
|
+
|
59
|
+
->setMarginBottom(20)
|
60
|
+
|
61
|
+
->setMarginLeft(40)
|
62
|
+
|
63
|
+
->setMarginRight(60)
|
64
|
+
|
65
|
+
->setMarginTop(80);
|
66
|
+
|
67
|
+
$cellA1->setWidth(100);
|
68
|
+
|
69
|
+
$cellA2 = $row->nextCell();
|
70
|
+
|
71
|
+
```
|