"Yegor's library" is Apache POI, a Java API to work with MS Office formats, see http://poi.apache.org
Openmeetings has to do all those chained transformations to show doc thumbnails in its Flash UI. I can see the following cases when POI can help: 1. For .ppt and .pptx we have PPT2PNG and PPTX2PNG utilities. If PNG is not an option and you need vector graphics, it is possible to convert ppt directly to Flash. The idea is that the Slide object implements a draw(java.awt.Graphics2D graphics) method. In PPT2PNG the graphics is derived from BufferedImage and the destination is image. To convert a ppt slide to SWF you need to pass a SWFGraphics2D object that will translate graphics call to Flash objects. I have a working prototype of such a code and will be happy to share it. To do SWF in Java I use http://www.flagstonesoftware.com/transform/index.html It is BSD-licensed and should be OK to use in Apache projects. 2. For .doc files we have a WordToFOConverter that transforms .doc to XSL-FO. The output then can be passed to Apache FOP to generate PDF. 3. For Excel we have a Excel2Html converter. All three are pure Java. Cheers, Yegor 2012/3/31 [email protected] <[email protected]>: > Hi Dmitry, > > how are you doing? Maybe I can help on some of your questions. > > "Do I understand right that OpenOffice is used just to convert formats? In > what format are documents translated?" > > The current process for importing documents of OpenOffice (LibreOffice) > compatible files (.doc, .ppt, .xls, .docx, ...) is: > (1) Convert the file to a PDF using OpenOffice [while we only trigger > JODConverter that forwards the our document then to OpenOfice] > (2) Convert the PDF to a thumbnail of every page using > ImageMagick+GhostScript > (3) Convert the PDF to a SWF with SWFTools. > > Sebastian > > 2012/3/31 Dmitry Zamula <[email protected]> > >> Do I understand right that OpenOffice is used just to convert formats? In >> what format are documents translated? >> Also, there is a mention of "Yegor's library" in the task - What is this >> library? >> >> 2012/3/30 Alexei Fedotov <[email protected]> >> >> > Hi Dmitry, >> > nice to hear from you >> > >> > 1) tasks are relevant; >> > 2) sure, if complexity is not a problem, >> > 3) JODConverter is actually openoffice interface >> > http://code.google.com/p/jodconverter/ >> > >> > -- >> > With best regards / с наилучшими пожеланиями, >> > Alexei Fedotov / Алексей Федотов, >> > http://dataved.ru/ >> > +7 916 562 8095 >> > >> > >> > >> > On Fri, Mar 30, 2012 at 3:50 PM, Dmitry Zamula <[email protected]> >> > wrote: >> > > Hello! >> > > >> > > My name is Dmitry, I'm on my fifth year of information technologies at >> > the >> > > National Research University of Information Technologies, Mechanics and >> > > Optics of St. Petersburg, Russia. I would like to participate in GSoC >> > 2012. >> > > I am familiar with Java and surrounding technology (Spring, EJB, >> > Hibernate >> > > etc.). I have one year experience in commercial developments. >> > > I want to ask you for some clarifications, about one of proposed ideas: >> > > >> > > "performance: maybe we can set up dedicated OpenOffice service, so we >> > > won't need to have one for each openmeetings installation; in this >> > > case we can monitor document conversion errors and stream them to >> > > Apache OpenOffice project; >> > > >> > > another approach to document handling is replacing OpenOffice with >> > > Zimbra, or Google Wave (which is Apache Wave), or Yegor's library; most >> > of >> > > them have problems with Excel though" >> > > >> > > Before submitting the application, I would like to clarify, whether the >> > > task is relevant today? Is it possible to use it as a summer project in >> > > GSoC? Do you need any proof of my competence in programming (like test >> > > task)? >> > > I would like to ask a question about the task - As far as I understand >> > > whiteboard displays a static image of the document without the >> > possibility >> > > of editing. Openmeeting uses JDOConverter to convert formats. But I do >> > not >> > > quite understand the role of OpenOffice in the process. >> > > >> > > _________________________________________________________ >> > > >> > > Regards, >> > > Dmitry Zamula >> > >> > > > > -- > Sebastian Wagner > https://twitter.com/#!/dead_lock > http://www.openmeetings.de <http://incubator.apache.org/openmeetings/> > http://www.webbase-design.de > http://www.wagner-sebastian.com > [email protected]
