質問編集履歴

1

フルパスバージョン追記

2018/03/05 04:39

投稿

nnahito
nnahito

スコア2004

test CHANGED
File without changes
test CHANGED
@@ -32,6 +32,36 @@
32
32
 
33
33
 
34
34
 
35
+
36
+
37
+ ---
38
+
39
+
40
+
41
+ フルパスバージョン
42
+
43
+
44
+
45
+ ``` php
46
+
47
+ <?php
48
+
49
+
50
+
51
+ require_once 'vendor/autoload.php';
52
+
53
+
54
+
55
+ $reader = PhpOffice\PhpWord\IOFactory::load(__DIR__ . "/test.docx",'Word2007');
56
+
57
+ $writer = PhpOffice\PhpWord\IOFactory::createWriter($reader,'Word2007');
58
+
59
+ $writer->save("sample.docx");
60
+
61
+ ```
62
+
63
+
64
+
35
65
  内容的には、
36
66
 
37
67
  test.docxを読み込んでそのままre_with_table_macros.docxに書き出すだけの処理のつもりなのですが、