たとえば、OMML を OOo/AOO/LibreOffice 図面にインポートし、それを png にエクスポートするマクロを書くだけです。
フィルターで OpenOffice マクロを使用する方法については、オンラインで多くの例があります。
コマンドラインから openoffice マクロを実行できます。
このようなもの、私はそれをもっと調べる時間がありません、申し訳ありません...
Sub Macro1(outfile, formula)
' Create a drawing.
oDoc = StarDesktop.loadComponentFromURL( "private:factory/sdraw", "_blank", 0, Array() )
' Get the first page.
oDrawPage = oDoc.getDrawPages().getByIndex( 0 )
' Input and output files - to be converted to URL's
iURL = ConvertToURL(formula)
oURL = ConvertToURL(outfile)
' Get a position in the drawing (not sure this works in draw, it does in writer)
set oViewCursor = objDocument.CurrentController.getViewCursor()
set oTextCursor = objDocument.Text.createTextCursorByRange(oViewCursor.getStart())
'insert formula
oTextCursor.InsertDocumentFromURL iFile, Array()
' Save the document using a filter.
oDoc.storeToURL(oURL, Array(MakePropertyValue("FilterName", "draw_png_Export"), ))
End Sub
コマンドラインから実行するには、次を使用します。
sdraw -invisible "macro:///Standard.Module1.ConvertWordToPDF('c:\formula.odf', 'c:\image.png')"
よろしく、
HP