Thanks Mathias, I am doing this as part of a j2ee application so I guess I would need to use the GraphicExporter as your suggest and iterate over the pages. I assume this would allow me to export each page including its text and graphics as an image?
Peter Eberlein kindly suggested embedding a doc-file into an empty draw document as an OLE-object and then exporting the draw document as a tiff but I'm not sure if I can do this programmatically yet. Any ideas which approach would be best? Regards, Andy. -----Original Message----- From: Mathias Bauer [mailto:[EMAIL PROTECTED] Sent: 25 November 2008 08:38 To: dev@udk.openoffice.org Subject: Re: [udk-dev] import doc and export to tiff Hi Andrew, Andrew Richards wrote: > Hello all, > > I am trying to identify if it is possible to use uno/udk and java to import > a .doc file and export it as a .tiff file? > > I have seen serveral examples of how to persit files but i cant see if what > i am trtying to achieve is possible. Could i use uno/udk and java to import > the .doc file, export the file to a pdf using a filter and then use draw > maybe to open the pdf and export the pdf as a .tiff file? That might work in the limits the pdf import filter sets. And you have to export each page individually, either by selecting the pages in the view and export the file (will export current page only) or by using the GraphicExporter and iterating over pages. > I need todo this as part of a java application, is what im trying to achieve > possible and using uno/udk? What would performance be like? It would be better and easier to render arbitrary parts of a document to any graphical format (also by iterating over the pages). I think it's possible, but I have to try it out before I can post the code here. Regards, Mathias -- Mathias Bauer (mba) - Project Lead OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS Please don't reply to "[EMAIL PROTECTED]". I use it for the OOo lists and only rarely read other mails sent to it. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]