librevenge is a base library for writing document import filters. It has interfaces for text documents, vector graphics, spreadsheets and presentations. WWW: http://libwpd.sourceforge.net