There’s a similar question for OpenOffice here, but there is no answer.
I’m looking for nearly the same setting for exporting (not just saving) files in LibreOffice Writer (instead of Draw).
I’d like the default to be JPG or PNG. I’d like to be able to change the default.
The current default is EPUB, which IMO is a useless choice. Better would be multi-page TIFF, PDF
It is at the same place as for all other kind of documents too. Go to menu Tools
> Options
> Load/Save
> General
. From the field Document type
choose Drawing
. And from the field Always save as
choose the desired format.
If you really mean “Export”, I know no way to preselect a file type.
The subject says “EXPORT”!
I also would like to know. He/she meant Export, which means to produce an image file of the selected draw or page. Until version 6.3, the default export type was WMF (go figure why!), and in 6.4 it is TIFF. I would like to change it to PNG, but I see no (obvious) way. Probably the option is hidden in a mysterious Easter egg.
Jorge
Sub export_CurrentPage_as_PNG()
sURL = ThisComponent.getURL()
if sURL = "" then exit sub
pg = ThisComponent.CurrentController.CurrentPage
fn = convertFromURL(sURL & "-"& pg.getName() & ".png")
sURL = convertToURL(fn)
i = Msgbox(sURL, MB_OKCANCEL + MB_ICONQUESTION)
if i = IDCANCEL then exit sub
srv = createUnoService("com.sun.star.drawing.GraphicExportFilter")
' print srv.supportsMimeType("image/png")
'mri srv
srv.setSourceDocument(pg)
Dim a(1) as new com.sun.star.beans.PropertyValue
a(0).Name = "MediaType"
a(0).Value = "image/png"
a(1).Name = "URL"
a(1).Value = sURL
srv.filter(a())
End Sub