Command Line Graphics Export Parameters

The graphic filters accepts a string of options containing graphics properties for export.

āļ‹āļ¯āˇāˇ„āļģāļĢāļē

Convert Draw document to PNG

soffice --convert-to 'png:draw_png_Export:{"PixelHeight":{"type":"long","value":"192"},"PixelWidth":{"type":"long","value":"192"}}' test.odg

Convert Writer document to JPEG

soffice --convert-to 'jpg:writer_jpg_Export:{"PixelHeight":{"type":"long","value":"192"},"PixelWidth":{"type":"long","value":"192"}}' test.odt

tip

The string of properties options is written in JSON notation.


Filters for GRAPHICFILTER

Displayed Filter Name

API Name (OutputFilterName / InputFilterName)

Media Type (OutputFileExtension)

JPEG - āˇƒāļļāˇāļŗāˇ’ āļĄāˇāļēāˇāļģāˇ–āļ´ āļ´āˇŠâ€āļģāˇ€āˇ“āļĢāļēāļąāˇŠāļœāˇš āˇƒāļ¸āˇ–āˇ„āļē

"writer_jpg_Export"

image/jpeg (jpg jpeg jfif jif jpe)

PNG - Portable Network Graphics

"writer_png_Export"

image/png (png apng)

SVG - āļ´āˇŠâ€āļģāļ¸āˇāļĢāļąāļē āļšāˇ… āˇ„āˇāļšāˇ’ āļ¯āˇ›āˇāˇ’āļš āļ āˇ’āļ­āˇŠâ€āļģ

"writer_svg_Export"

image/svg+xml (svg)

WEBP - WebP Image

"writer_webp_Export"

image/webp (webp)


note

The valid API names are [writer|impress|calc|draw]_[png|jpg|svg|webp]_Export, depending on the source document and output format.


āļœāˇ”āļĢāˇāļ‚āļœ

āļœāˇ”āļĢāˇāļ‚āļœ

āˇ€āļģāˇŠâ€āļœāļē

āļ…āļœāļē

Translucent

boolean

true / false

PixelWidth

32-bit integer

PixelHeight

32-bit integer

ExportOnlyBackground

boolean

true / false

HighContrast

boolean

true / false

PageNumber

32-bit integer

ScrollText

boolean

true / false

CurrentPage

XDrawPage (not for command line)

ScaleXNumerator

32-bit integer

ScaleXDenominator

32-bit integer

ScaleYNumerator

32-bit integer

ScaleYDenominator

32-bit integer

AntiAliasing

boolean

true / false


Please support us!