Hi Andreas, in openoffice it is possible to import EMF images. > Can anyone please tell me if API functions are available to load a EMF > file and convert it to a bitmap format ( BMP, TIF ). > > This should possibly work on linux too.
the following Basic sample should do what you want ... ------------------ rem to be adjusted source = "<fileurl to your emf file>" aURL.complete = "<fileurl for the tiff file>" emffile = StarDesktop.loadComponentFromURL(source,0,"_blank",dimArray()) xExporter = createUnoService( "com.sun.star.drawing.GraphicExportFilter" ) xExporter.SetSourceDocument( emffile.currentController.currentPage ) Dim aArgs (1) as new com.sun.star.beans.PropertyValue Dim aURL as new com.sun.star.util.URL aArgs(0).Name = "MediaType" aArgs(0).Value = "image/tiff" aArgs(1).Name = "URL" aArgs(1).Value = aURL xExporter.filter( aArgs() ) emffile.close(true) ------------------ Hope that helps Cheers Stephan
