HI Ingrid,
 Yes you alright. In fact OpenOffice provides you chartas as startview
metafile format which is understandable by application based on
opendocuments but it is extremely complicate to convert them into JPG or
PNG, hence I am looking for other solutions.

On Wed, Feb 18, 2009 at 10:15 AM, Ingrid Halama <[email protected]>wrote:

> Hi,
>
> Fernand Vanrie wrote:
>
>> Daniel Garcia wrote:
>>
> [...]
>
>>  What I am looking for is a way so that I can get charts and drawing as
>>> images (jpg or gift since they will be shown by a browser and all of us
>>> know
>>> how IEx behaves :)) via any api, preferably java without having an
>>> OpenOffice instance running in the background?
>>>
>>
> I am not sure that your task is possible without a running OpenOffice.org.
> You might try to parse the documents yourself. There is a folder
> 'ObjectReplacements' within the zipped documents, which usually contains
> replacement images of all the chart objects and other OLE objects. Maybe
> somebody knows how to convert this format to jpg?
>
> [...]
>
>  We do something similar with "pictures" who has not the right format or
>> pixel size.
>> We Open a Hiden Drawdoc, place the picture in it and use the draw export
>> filters to store the new picture to a known location for the HTML file.
>> We have i all in Basic code, let me known if you will have a look a it
>>
>>  That sounds promising. I would suggest to do the same for charts. For
> each chart copy it to a draw document, resize the page that it fits the
> chart size and export it to jpg directly or whatever format is suitable.
>
> There is an issue for the missing chart->picture export feature already:
> http://qa.openoffice.org/issues/show_bug.cgi?id=21588
>
> It would be great if you would share your solutions with other users there.
> And you are welcome to add your votes!
>
> [...]
>
> Kind regards,
> Ingrid
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to