インストール済みフォントの列挙 - らんだむな記憶の OpenOffice 版を試してみるもサンプルが少なすぎて全然分からない・・・
var stdout = WScript.StdOut; var doc = desktop.loadComponentFromURL("file:///D:/tmp/sample.odt", "_blank", 0, []); var text = doc.getText(); var enumeration = text.createEnumeration(); while (enumeration.hasMoreElements()) { var text_element = enumeration.nextElement(); stdout.WriteLine(text_element.string); }