質問編集履歴

1

進展

2018/03/02 07:26

投稿

nnahito
nnahito

スコア2004

test CHANGED
File without changes
test CHANGED
@@ -22,11 +22,13 @@
22
22
 
23
23
 
24
24
 
25
- 以下のような数パターンのコマンドを実行しましたが決まって
25
+ 進展あり。
26
26
 
27
- `Error: source file could not be loaded`
27
+ `Error: source file could not be loaded`は、LibreOfficeを一度起動し直すと何故か解消されました。
28
28
 
29
+
30
+
29
- というエラーが発生します
31
+ 次のエラー。
30
32
 
31
33
 
32
34
 
@@ -34,69 +36,49 @@
34
36
 
35
37
 
36
38
 
37
- **実行コマンド その1**
39
+ 以下の実行コマンドを叩きました。
38
-
39
- なおコマンドは、変換したいファイルがある場所まで`cd`してから実行しております。
40
40
 
41
41
 
42
42
 
43
43
  ```bash
44
44
 
45
- /Applications/LibreOffice.app/Contents/MacOS/soffice --headless --nologo --nofirststartwizard --convert-to docx --outdir ./ test.pdf
45
+ /Applications/LibreOffice.app/Contents/MacOS/soffice --headless --invisible --convert-to
46
+
47
+ docx:"MS Word 2007 XML" *.pdf
46
48
 
47
49
  ```
48
50
 
49
51
 
50
52
 
51
-
52
-
53
- ---
54
-
55
-
56
-
57
- **実行コマンド そ2**
53
+ すると、以下ようなエラーがでます。
58
54
 
59
55
 
60
56
 
61
57
  ```bash
62
58
 
63
- /Applications/LibreOffice.app/Contents/MacOS/soffice --headless --nologo --nofirststartwizard --convert-to docx test.pdf --outdir ./
59
+ convert /Users/USER_ID/project/test/test2.pdf -> /Users/USER_ID/project/test/test2.docx using filter : MS Word 2007 XML
60
+
61
+ Error: Please verify input parameters... (SfxBaseModel::impl_store <file:///Users/USER_ID/project/test/test2.docx> failed: 0xc10)
64
62
 
65
63
  ```
66
64
 
67
65
 
68
66
 
69
- ---
67
+ コンバートは開始できたが、引数の入力ができない?みたいなエラーですね。
68
+
69
+ (`Error: Please verify input parameters`)
70
70
 
71
71
 
72
72
 
73
- **実行コマンド そ3**
73
+ ひとまず、`sudo`をつけて実行しましたが、同様エラーになりました。
74
74
 
75
75
 
76
76
 
77
- ```bash
77
+ ちなみに、
78
78
 
79
- /Applications/LibreOffice.app/Contents/MacOS/soffice --headless --nologo --nofirststartwizard --convert-to docx /User/から始まる絶対パス.pdf --outdir ./
79
+ `/Applications/LibreOffice.app/Contents/MacOS/soffice --headless --convert-to odg *.pdf`
80
80
 
81
- ```
82
-
83
-
84
-
85
-
86
-
87
- ---
88
-
89
-
90
-
91
- **実行コマンド その4**
81
+ だと問題なく変換されました。
92
-
93
-
94
-
95
- ```bash
96
-
97
- /Applications/LibreOffice.app/Contents/MacOS/soffice --headless --nologo --nofirststartwizard --convert-to docx /User/から始まる絶対パス.pdf --outdir /User/から始まる絶対パス.docx
98
-
99
- ```
100
82
 
101
83
 
102
84
 
@@ -104,7 +86,7 @@
104
86
 
105
87
  # 質問
106
88
 
107
- なぜ、`Error: source file could not be loaded`のようなエラーが発生するのでしょうか?
89
+ なぜ、のようなエラーが発生するのでしょうか?
108
90
 
109
91
  また、どのようにして解決すれば良いのでしょうか。
110
92
 
@@ -122,6 +104,12 @@
122
104
 
123
105
  - https://qiita.com/y_irabu/items/5d916562744b05c5fc82
124
106
 
107
+ - http://d.hatena.ne.jp/kskmeuk/20170627/1498549844
108
+
109
+ - https://stackoverflow.com/questions/30349542/command-libreoffice-headless-convert-to-pdf-test-docx-outdir-pdf-is-not
110
+
111
+ - https://bugs.documentfoundation.org/show_bug.cgi?id=38511
112
+
125
113
 
126
114
 
127
115