Mathias, thank you for your feedback...I have a few responses.
> I think you have a misconception how document conversion in OOo works.
> There is no direct "translation" between input and output format, input
> filters always convert the input format into a representation in memory
> (the "core" of a document) and the output filter converts this into the
> output format. If you think about this a little bit you will see that
> anything else doesn't make sense, at the end OOo is an application and
> not a conversion service: why should there be code that directly
> translates from e.g. doc to html? OOo itself doesn't need such code.
I assumed that it would be a "doc to internal" unmarshalling followed
by a "internal to HTML" unmarshalling, for obvious reasons (like need
2n filters rather n!)...I guess I was envisioning a small(ish) bit of
code that would do something like (in pseudojava)
Document doc = OOoUtils.getDocument(HTML_CONVERTER,"somefile.html");
OOoUtils.writeDocument(DOC_CONVERTER,doc,"output.doc");
maybe with some Input/Output Streams or services instead, but that's
the general jist.
> So it will never make sense to isolate the filter code, you always also
> need the code of the document core also. Theoretically it is possible to
> take the code of the filters and the core and make it a smaller package
> but until now nobody needed something like this so very badly that he
> started the work to create such an environment. You will need a kind of
> an application anyway and you will need UNO and its bootstrapping, you
> will need some of the services in OOo used by the filters etc.
I see what you're getting at, the conversion process isn't
self-contained but dependent on a series of services, strucutres, and
what not.
Just by reading some recent archives of this list, I'd say this kind
of scripting is fairly sought after...but maybe the people who want to
cherrypick the functionality aren't the same kind of people willing to
put in the work to make it an isolated tool.
> So it's possible but quite some work to do and all you earn from the
> work to make it happen would be that you safe some MB on disk.
> Is that worth the effort?
Quite possibly not...I think it was a desire for more easily embedding
installation of "just the conversion stuff" rather than having OOo be
a seperate install. If you could easily embed just a few filters and
some supporting classes at the source code level into a larger
project, that would make it more transparent to the user.
> BTW: you don't need an *installed* version of OOo on your machine, it's
> enough to have a runnable *copy* (though in this case you have to create
> each UNO connection manually because your system doesn't provide a hint
> where the OOo installation is).
Aha, good to know.
> Best regards,
> Mathias
Thank you!
Kirk
---------------------------------------------------------------------
To unsubscribe, e-mail:
[hidden email]
For additional commands, e-mail:
[hidden email]