So the first conversion I am doing is actually from LRF to PDF just because there are libraries available for the conversion: LRFTools. Yes, I wanted to implement fb2 to lrf first, but I'd like to finish UI part first so that I have extension point correct to contribute to conversion. The extension point here is this:
- <extension point="free.akravets.iskaboo.ui.converter.eBookConveterProvider">
- <ebookconverterprovider description="Converts LRF to EPUB files" <br="">inputtype="lrf"
- name="LRF to EPUB Converter"
- outputtype="epub" providerclass="free.akravets.iskaboo.ui.coverter.lrttools.LRF2EPUBConverter">
- </ebookconverterprovider>
- </extension>
So here a plugin that wants to contribute to conversion mechanism will implement this extension point and provide implementation of IEBookConverterProvider interface:
- public interface IEBookConverterProvider {
- public URL convert(URL inputDocument) throws MalformedURLException;
- }
Of course this interface is not 100% set, but basic conversion from LRF to PDF almost works.
No comments:
Post a Comment