Michael
Michael

Reputation:

File format conversion library

Are there any well known solutions that meet/exceed below requirements?

Upvotes: 1

Views: 2190

Answers (3)

Roger Nelson
Roger Nelson

Reputation: 1912

I (having written an all in one Tex/LaTeX -> HTML and ASCII text and RTF convertor), would say this would be quite an undertaking.

The problem with this, is these various 'document' formats are intended for rather different purposes. And while there are indeed such conversion tools between some of these formats, there is often a conceptual disparity in the structure, meaning and implementation of 'document' and it is very often is necessary to trade off on features supported by one format to hack together an acceptable output in another. For example, PDF is very strong in presentation, precise positioning and support for fonts, where as HTML is more concerned about structure with practically no considuration for these things (without CSS).

I am curious how do you envision such an API being used, when usually someone simply wants a conversion program?

Upvotes: 0

raupach
raupach

Reputation: 3102

With DocBook you can export to various output formats, but reverting is always hard. For pdf you can try iText

Upvotes: 0

codelogic
codelogic

Reputation: 73762

OpenOffice has a rich API that supports conversion between the various supported formats. Check out this question. It recommends using JODConverter.

Upvotes: 2

Related Questions