CIB job technischer Leitfaden (DE)

7. Kommandos

7.13. CIB doXichange

Kommandoname: „lo-conversion“

Mit CIB doXichange wird ein Dokument in ein PDF (Version 1.4) konvertiert. Dazu wird LibreOffice powered by CIB verwendet.

Unterstützt werden die Plattformen Windows 32/64bit und Linux 32/64bit

Die Dokument Konvertierung wird für folgende Extensions angeboten:

.123, ,602, ,abw, ,bmp, ,cdr, ,cgm, ,cmx, ,cwk, ,dbf, ,dif, ,doc, ,docm, ,docx, ,dot, ,dotm, ,dotx, ,dxf, ,emf, ,eps, ,fb2, ,fh, ,fh1, ,fh10, ,fh11, ,fh2, ,fh3, ,fh4, ,fh5, ,fh6, ,fh7, ,fh8, ,fh9, ,fodg, ,fodp, ,fods, ,fodt, ,gnm, ,gnumeric, ,htm, ,html, ,hwp, ,key, ,lrf, ,lwp, ,mcw, ,met, ,mml, ,mw, ,mwd, ,numbers, ,nx^d, ,odc, ,odf, ,odg, ,odg, ,odm, ,odp, ,ods, ,odt, ,otg, ,otm, ,otp, ,ots, ,ott, ,p65, ,pages, ,pbm, ,pcd, ,pct, ,pcx, ,pgm, ,pict, ,pm, ,pm6, ,pmd, ,pot, ,potm, ,potm, ,potx, ,potx, ,ppm, ,pps, ,ppsx, ,ppsx, ,ppt, ,pptm, ,pptm, ,pptx, ,psd, ,pub, ,ras, ,sgf, ,sgv, ,slk, ,stc, ,std, ,sti, ,stw, ,svg, ,svgz, ,svm, ,sxc, ,sxd, ,sxg, ,sxi, ,sxm, ,sxw, ,sylk, ,tga, ,tif, ,tiff, ,uof, ,uop, ,uos, ,uot, ,vdx, ,vsd, ,vsdm, ,vsdx, ,wb2, ,wdb, ,wk1, ,wk1, ,wk3, ,wks, ,wmf, ,wn, ,wpd, ,wpg, ,wps, ,wps, ,wq1, ,wq2, ,wri, ,xbm, ,xlc, ,xlk, ,xlm, ,xls, ,xlsb, ,xlsm, ,xlsx, ,xlt, ,xltm, ,xltx, ,xlw, ,xpm, ,zabw.


Installierte makros ausführen

Ausserdem kann man durch das Kommando „lo-conversion“ ein in LibreOffice installiertes Macro ausführen. Dafür muss man die Property macroUrl im Request deklarieren.

<steps>
<step command="lo-conversion" expected-result-code="0" name="LOmacroConversion">
<properties>
<property name="macroUrl">macro:///Macro.Main(arg)</property>
<property name="InputFilename">Input.ott</property>
<property name="OutputFilename">Output.pdf</property>
<property name="OutputFormat">pdf</property> </properties>
</step>

Dies ist möglich in Version 2.2.0

Durch das Kommando „lo-runmacro“ ist es möglich eine installierte Macro ohne weitere Parameter ausführen, indem nur die Property macroUrl einsetzt.

<steps>
<step command="lo-runmacro" expected-result-code="0" name="LOmacroConversion">
<properties>
<property name="macroUrl">macro:///Macro.Main(arg)</property>
</properties>
</step>

Dies ist möglich in Version 2.2.1.

LibreOffice powered by CIB Installationen:

Die Linux Versionen 32/64 Bit werden als .tar.gz-Archive ausgeliefert.
Die Windows Versionen 32/64 Bit als ZIP-Archiv.

Zu beachten:

Unter Windows ist es erforderlich, dass die VisualC++ redistributables für die verwendete Architektur (x86/x64) installiert sind. Sie sind zu finden unter:

"https://www.microsoft.com/de-de/download/details.aspx?id=40784"

In allen Fällen muss die Umgebungsvariable zum Auffinden des LibreOffice-Installations-Verzeichnisses ("LOPath") gesetzt werden. Das kann direkt auf Systemebene oder, bei Verwendung des CIB documentServers, durch Setzen der entsprechenden Environment-Variable geschehen.

Beispiel: LOPath=c:\opt\cib\LO\program

Liste der unterstützten Properties:
„InputFilename“                      Eingabedatei als absoluter Pfad
„OutputFilename“                   Ausgabedatei als absoluter Pfad
„OutputFormat“                      „FormatPdf“ (Angabe optional)

Implementiert ab Version 2.0.1

„macroUrl“    URL zu einer in LO installierten Macro die ausgeführt wird.Syntax: macro:///Library.Module.Function(args)

Implementiert ab Version 2.2.0