1
GUIなしでマクロだけを実行しているLibreOfficeを呼び出すために何が必要ですか?
LibreOfficeを起動し、GUIを介してマクロを実行すると、期待通りに各スプレッドシートページに1つずつ、合計3つのHTMLファイルが生成されます。 $ libreoffice x.ods Tools>Macros>Run Macros... Library: LibreOffice Macros> ExportSheetsToHTML Macro Names: exportsheetstohtml.js Run マクロだけを呼び出そうとすると、ハングアップするだけです。 $ libreoffice\ -invisible\ -nofirststartwizard\ -headless\ -norestore\ x.ods "macro:///LibreOffice Macros.ExportSheetsToHTML.exportsheetstohtml.js" $ ps x | grep libreoffice 11286 pts/0 S+ 0:00 /bin/sh /opt/libreoffice/program/soffice -invisible -nofirststartwizard -headless -norestore x.ods macro:///LibreOffice Macros.ExportSheetsToHTML.exportsheetstohtml.js 11296 pts/0 Sl+ 0:58 /opt/libreoffice/program/soffice.bin -invisible -nofirststartwizard …