Bernhard Haumacher wrote:
> Hi,
> 
> I'm trying to write a macro that exports all pages in draw to
> separate SVG files using the page name as file name. Everything
> works, except the export to SVG (export to PNG or JPEG works
> fine) :-)
> 
> When replacing
> 
>     aArgs(0).Name  = "MediaType"
>     aArgs(0).Value = "image/png"
> 
> with
> 
>     aArgs(0).Name  = "MediaType"
>     aArgs(0).Value = "image/svg+xml"
> 
> in the following code, only empty files are created. I also
> tried "image/svg" and "svg" as mime types.
> 
> Can someone give me a hint?

The MediaType seems to be correct, but it seems that you provide a wrong
filter name when exporting to SVG.

I don't know how the graphic export filters work, but a look into my
configuration files shows me that the filter name for the SVG export
filter is "svg_Export". So you should at least change this. I don't know
wether you must provide a filter name at all, your code example looks as
if you don't do it for png. Perhaps it works without one for cvg also,
just with the (correct) MediaType only. But it will definitely not work
with a wrong filter name.

Best regards,
Mathias

-- 
Mathias Bauer - OpenOffice.org Application Framework Project Lead
Please reply to the list only, [EMAIL PROTECTED] is a spam sink.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to