Vsebina

# Parametri ukazne vrstice za izvoz grafike

Grafičnim filtrom lahko podamo niz z možnostmi, ki določajo grafične lastnosti za izvoz.

## Primeri:

### Pretvarjanje dokumenta programa Draw v PNG

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

### Pretvarjanje dokumenta programa Writer v JPEG

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

Niz lastnosti možnosti je zapisan v notaciji JSON.

### Filtri za GRAPHICFILTER

Prikazano ime filtra | Ime (OutputFilterName / InputFilterName) | Vrsta datoteke (OutputFileExtension)
--- | --- | ---
JPEG – Joint Photographic Experts Group | "writer_jpg_Export" | image/jpeg (jpg jpeg jfif jif jpe)
PNG – Portable Network Graphics | "writer_png_Export" | image/png (png apng)
SVG – Scalable Vector Graphics | "writer_svg_Export" | image/svg+xml (svg)
WEBP – slika WebP | "writer_webp_Export" | image/webp (webp)

Veljavna imena API so [writer|impress|calc|draw]_[png|jpg|svg|webp]_Export, odvisno od izvornega dokumenta in želene vrste izhodne datoteke.

## Lastnosti

Lastnost | Vrsta | Vrednost
--- | --- | ---
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 (ne za ukazno vrstico) |
ScaleXNumerator | 32-bit integer |
ScaleXDenominator | 32-bit integer |
ScaleYNumerator | 32-bit integer |
ScaleYDenominator | 32-bit integer |
AntiAliasing | boolean | true / false

Podobne teme

Imena filtrov za pretvorbo datotek

Zagon LibreOffice s parametri

Podprite nas!