Dies ist eine alte Version des Dokuments!
Inhaltsverzeichnis
Libreoffice
Version 6.4.5
Man kann (Linux Ubuntu 18.04.4 LTS) die neueste Version mit folgenden Befehlen installieren bzw. Aktualisieren (im Standard-Repository von Ubuntu 18.04 gibt es nur die fehlerhafte Version 6.0.7):
add-apt-repository ppa:libreoffice/ppa apt update apt install libreoffice rechner:~$ apt show libreoffice Package: libreoffice Version: 1:6.4.5-0ubuntu0.18.04.1
Version 6.0.7.3
Diese Datei enthält Verknüpfungen zu anderen Dateien. Sollen diese aktualisiert werden?
Verknüpfung zu anderen Dateien finden und löschen
Verknüpfungen zu anderen Dateien findet man hier:
Bearbeiten⇒Verknüpfungen zu externen Dateien…
Wenn man diese gelöscht hat, dann sollten ggf. REF-Errors in einigen Zellen stehen, hier sollten dann (direkt oder indirekt) die Verknüpfungen zu den anderen Dateien zu finden sein.
Sollte das keinen Erfolg bringen, dann kann man das aktualisieren solcher Verknüpfungen komplett abzuschalten:
Extras⇒Optionen⇒OpenOffice.org Calc⇒Allgemein→AktualisierungaufNiestellen
Version 4.2.7.2
das wichtigste installieren:
> aptitude install libreoffice-core libreoffice-base libreoffice-calc libreoffice-draw libreoffice-impress libreoffice-writer libreoffice-gtk
deutsche Sprachunterstützung:
> aptitude install libreoffice-help-de libreoffice-l10n-de
damit man die Adressdatenquelle für Serienbriefe auch selbst erstellen kann:
> aptitude install libreoffice-base
das könnte eventuell noch brauchbar sein:
> aptitude install libreoffice-dmaths libreoffice-librelogo libreoffice-mysql-connector libreoffice-sdbc-postgresql
Serienbrief-Funktion
Dateiformate konvertieren mit LibreOffice
OpenOffice kann auf der Komandozeile schon einiges, wie zum Beispiel automatisiertes Drucken. Um Dateiformate zu konvertieren muss man einen OpenOffice Server starten und dann mit einem Pythonscript die Datei über eine standardisierte UNO-Schnittstelle von OpenOffice umwandeln lassen. Da man hierfür einiges anstellen muss, gibt es zur Erleichterung ein Paket mit dem Namen "unoconv". Dieses Programm braucht mindestens diese drei Parameter:
- Backend (document, graphics, presentation, spreadsheet)
- Zielformat (mit "unoconv –show" kann man sich alle anzeigen lassen)
- Quelldatei[en]
erst installieren:
aptitude install unoconv libreoffice-writer libreoffice-draw libreoffice-calc libreoffice-impress
und so wird es bedient:
Vorbereitung
# yum install unoconv # aptitude install unoconv
Server starten
# unoconv -l &
oder mit spezieller Portangabe
# unoconv -l -p 2002 &
Liste der möglichen Zielformate anzeigen (OpenOffice Version 3.1.1-5ubuntu1.1)
# unoconv --show
bzw.
# unoconv -s 127.0.0.1 -p 2002 --show
The following list of document formats are currently available: bib - BibTeX [.bib] doc - Microsoft Word 97/2000/XP [.doc] doc6 - Microsoft Word 6.0 [.doc] doc95 - Microsoft Word 95 [.doc] docbook - DocBook [.xml] html - HTML Document (OpenOffice.org Writer) [.html] odt - Open Document Text [.odt] ott - Open Document Text [.ott] ooxml - Microsoft Office Open XML [.xml] pdb - AportisDoc (Palm) [.pdb] pdf - Portable Document Format [.pdf] psw - Pocket Word [.psw] rtf - Rich Text Format [.rtf] latex - LaTeX 2e [.ltx] sdw - StarWriter 5.0 [.sdw] sdw4 - StarWriter 4.0 [.sdw] sdw3 - StarWriter 3.0 [.sdw] stw - Open Office.org 1.0 Text Document Template [.stw] sxw - Open Office.org 1.0 Text Document [.sxw] text - Text Encoded [.txt] txt - Plain Text [.txt] vor - StarWriter 5.0 Template [.vor] vor4 - StarWriter 4.0 Template [.vor] vor3 - StarWriter 3.0 Template [.vor] xhtml - XHTML Document [.html] The following list of graphics formats are currently available: bmp - Windows Bitmap [.bmp] emf - Enhanced Metafile [.emf] eps - Encapsulated PostScript [.eps] gif - Graphics Interchange Format [.gif] html - HTML Document (OpenOffice.org Draw) [.html] jpg - Joint Photographic Experts Group [.jpg] met - OS/2 Metafile [.met] odd - OpenDocument Drawing [.odd] otg - OpenDocument Drawing Template [.otg] pbm - Portable Bitmap [.pbm] pct - Mac Pict [.pct] pdf - Portable Document Format [.pdf] pgm - Portable Graymap [.pgm] png - Portable Network Graphic [.png] ppm - Portable Pixelmap [.ppm] ras - Sun Raster Image [.ras] std - OpenOffice.org 1.0 Drawing Template [.std] svg - Scalable Vector Graphics [.svg] svm - StarView Metafile [.svm] swf - Macromedia Flash (SWF) [.swf] sxd - OpenOffice.org 1.0 Drawing [.sxd] sxd3 - StarDraw 3.0 [.sxd] sxd5 - StarDraw 5.0 [.sxd] tiff - Tagged Image File Format [.tiff] vor - StarDraw 5.0 Template [.vor] vor3 - StarDraw 3.0 Template [.vor] wmf - Windows Metafile [.wmf] xhtml - XHTML [.xhtml] xpm - X PixMap [.xpm] The following list of presentation formats are currently available: bmp - Windows Bitmap [.bmp] emf - Enhanced Metafile [.emf] eps - Encapsulated PostScript [.eps] gif - Graphics Interchange Format [.gif] html - HTML Document (OpenOffice.org Impress) [.html] jpg - Joint Photographic Experts Group [.jpg] met - OS/2 Metafile [.met] odd - OpenDocument Drawing (Impress) [.odd] odg - OpenOffice.org 1.0 Drawing (OpenOffice.org Impress) [.odg] odp - OpenDocument Presentation [.odp] otp - OpenDocument Presentation Template [.otp] pbm - Portable Bitmap [.pbm] pct - Mac Pict [.pct] pdf - Portable Document Format [.pdf] pgm - Portable Graymap [.pgm] png - Portable Network Graphic [.png] pot - Microsoft PowerPoint 97/2000/XP Template [.pot] ppm - Portable Pixelmap [.ppm] ppt - Microsoft PowerPoint 97/2000/XP [.ppt] pwp - PlaceWare [.pwp] ras - Sun Raster Image [.ras] sda - StarDraw 5.0 (OpenOffice.org Impress) [.sda] sdd - StarImpress 5.0 [.sdd] sdd3 - StarDraw 3.0 (OpenOffice.org Impress) [.sdd] sdd4 - StarImpress 4.0 [.sdd] sti - OpenOffice.org 1.0 Presentation Template [.sti] stp - OpenDocument Presentation Template [.stp] svg - Scalable Vector Graphics [.svg] svm - StarView Metafile [.svm] swf - Macromedia Flash (SWF) [.swf] sxi - OpenOffice.org 1.0 Presentation [.sxi] tiff - Tagged Image File Format [.tiff] vor - StarImpress 5.0 Template [.vor] vor3 - StarDraw 3.0 Template (OpenOffice.org Impress) [.vor] vor4 - StarImpress 4.0 Template [.vor] vor5 - StarDraw 5.0 Template (OpenOffice.org Impress) [.vor] wmf - Windows Metafile [.wmf] xhtml - XHTML [.xml] xpm - X PixMap [.xpm] The following list of spreadsheet formats are currently available: csv - Text CSV [.csv] dbf - dBase [.dbf] dif - Data Interchange Format [.dif] html - HTML Document (OpenOffice.org Calc) [.html] ods - Open Document Spreadsheet [.ods] ooxml - Microsoft Excel 2003 XML [.xml] pdf - Portable Document Format [.pdf] pts - OpenDocument Spreadsheet Template [.pts] pxl - Pocket Excel [.pxl] sdc - StarCalc 5.0 [.sdc] sdc4 - StarCalc 4.0 [.sdc] sdc3 - StarCalc 3.0 [.sdc] slk - SYLK [.slk] stc - OpenOffice.org 1.0 Spreadsheet Template [.stc] sxc - OpenOffice.org 1.0 Spreadsheet [.sxc] vor3 - StarCalc 3.0 Template [.vor] vor4 - StarCalc 4.0 Template [.vor] vor - StarCalc 5.0 Template [.vor] xhtml - XHTML [.xhtml] xls - Microsoft Excel 97/2000/XP [.xls] xls5 - Microsoft Excel 5.0 [.xls] xls95 - Microsoft Excel 95 [.xls] xlt - Microsoft Excel 97/2000/XP Template [.xlt] xlt5 - Microsoft Excel 5.0 Template [.xlt] xlt95 - Microsoft Excel 95 Template [.xlt]
Das sind 118 Formate, die OpenOffice in der Version 3.1 versteht!
Client aufrufen (Schematisch)
# unoconv -s [unoconv-Server] -p 2002 -d [Dokumententyp] -f [Zielformat] [Quelldatei] [Quelldatei] # unoconv -s [unoconv-Server] -p 2002 -d [document, graphics, presentation, spreadsheet] -f [pdf, odt, ods, doc, xls, csv, `unoconv --show`] [Quelldatei] [Quelldatei]
Beispiel:
eine Excel-Datei in eine CSV-Datei umwandeln:
# unoconv -d spreadsheet -f csv Originaldatei.xls
eine OpenDokument-Tabelle in eine Excel-Datei umwandeln (mit Angabe des Servers und des Ports):
# unoconv -s 127.0.0.1 -p 2002 -d spreadsheet -f xls Originaldatei.ods
die simple Kommandozeile, alles in einem:
# unoconv -l & unoconv -d spreadsheet -f xls Originaldatei.ods



