Lotus-1-2-3 (wk1) file parsing guidelines

时间:2016-04-21 21:51:09

标签: javascript php excel lotus

I'm trying to make a little converter from wk1 (lotus-1-2-3) files to excel for a friend. The files have only simple data, no functions or anything really complicated.

I couldn't find anything related to guidelines to parse or documentation of wk1 file structure. I already tried going through libreoffice code but my C++ is very rusty (academic level, 6 years ago).

I usually code in PHP and JavaScript, and I didn't find anything related to this for these languages.

I believe I read somewhere that Lotus-1-2-3 is abandonware now, so I don't think is "illegal" or anything.

Is there any information available about this? What would be the best approach to "decoding" the data (other than that just give up)?

Thanks

1 个答案:

答案 0 :(得分:1)

对我来说没有理由重新发明轮子......

有一个可以转换这些文件的免费软件 它甚至可以作为便携式应用程序使用,它有一个命令行参数来转换格式:
soffice --headless --convert-to <TargetFileExtension>:<NameOfFilter> file_to_convert.xxx

所以,如果你真的需要一个“自己的”程序:用libreoffice的可移植版本打包它,并创建一个很好的界面来选择源文件和目标文件并运行命令行......