Token导航 LogoToken导航TokenDH.com
研究检索只读clawhub未标认证来源可访问clear审计提醒

libreoffice-cli-prolibreoffice CLI 专业版

Agent Skill

libreoffice-cli-pro 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

5,104

周安装

217

GitHub Stars

公开资料未说明

下载量

1,788
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:libreoffice-cli-pro(libreoffice CLI 专业版)
来源仓库:https://github.com/joergbot-cloud/libreoffice-cli-pro
安装命令:
openclaw skills install libreoffice-cli-pro
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install libreoffice-cli-pro

简介

通过 LibreOffice 无头模式完成文档格式转换与 PDF 导出任务。

  • 支持 doc/odt/xls/ods 等多格式互转与批量处理。
  • 可指定输出路径、页面范围与图像压缩选项进行定制化转换。
  • 需系统安装 LibreOffice 且具备命令行执行权限。
  • 大文件转换可能占用较多 CPU 与磁盘 I/O,建议在空闲时段运行。

SKILL.md

name
libreoffice-cli-pro
description
Comprehensive document conversion, creation and editing via LibreOffice CLI (Headless-Modus). Use for: PDF export, format conversion (doc↔odt↔pdf, xls↔ods↔xlsx, ppt↔odp↔pptx), text extraction, batch conversions, and integration with other skills. Includes wrapper scripts, health checks, and automation workflows.
emoji
📄

LibreOffice CLI Pro

Comprehensive LibreOffice 24.2+ management in headless mode with wrapper scripts, batch processing, and integration capabilities.

Quick Start

1. Check Installation

./scripts/libreoffice-check.sh health

2. Convert Single Document

./scripts/libreoffice-convert.sh document.docx pdf

3. Batch Convert Documents

./scripts/libreoffice-batch.sh ./documents/ pdf --recursive

Available Scripts

ScriptDescriptionUsage
libreoffice-check.shHealth check and installation verification./libreoffice-check.sh health
libreoffice-convert.shConvert single document between formats./libreoffice-convert.sh input.docx pdf
libreoffice-batch.shBatch convert multiple documents./libreoffice-batch.sh ./docs/ pdf --recursive
libreoffice-extract.shExtract text from documents./libreoffice-extract.sh document.pdf --format txt
libreoffice-pdf.shPDF-specific operations./libreoffice-pdf.sh merge *.docx output.pdf
libreoffice-merge.shMerge multiple documents./libreoffice-merge.sh *.odt combined.pdf

Complete Script Reference

libreoffice-check.sh

Health check and installation verification for LibreOffice.

# Comprehensive health check
./scripts/libreoffice-check.sh health

# Check specific components
./scripts/libreoffice-check.sh installed
./scripts/libreoffice-check.sh version
./scripts/libreoffice-check.sh headless
./scripts/libreoffice-check.sh conversion
./scripts/libreoffice-check.sh filters

# Installation help
./scripts/libreoffice-check.sh install-help

libreoffice-convert.sh

Convert single documents between various formats.

# Basic conversion
./scripts/libreoffice-convert.sh document.docx pdf

# With quality settings
./scripts/libreoffice-convert.sh presentation.pptx pdf --quality high

# Specific output directory
./scripts/libreoffice-convert.sh spreadsheet.xlsx ods --output ./converted/

# Verbose output for debugging
./scripts/libreoffice-convert.sh report.odt docx --verbose

libreoffice-batch.sh

Batch convert multiple documents with parallel processing.

# Convert all documents in directory
./scripts/libreoffice-batch.sh ./documents/ pdf

# Recursive conversion
./scripts/libreoffice-batch.sh ./project/ pdf --recursive

# Specific file pattern
./scripts/libreoffice-batch.sh . docx --pattern "*.odt"

# Parallel processing (4 threads)
./scripts/libreoffice-batch.sh ./large_collection/ pdf --threads 4

# Dry run (show what would be converted)
./scripts/libreoffice-batch.sh ./docs/ pdf --dry-run

libreoffice-extract.sh

Extract text content from various document formats.

# Extract text to console
./scripts/libreoffice-extract.sh document.pdf

# Extract to file with specific format
./scripts/libreoffice-extract.sh report.docx --format txt --output extracted.txt

# Extract as HTML
./scripts/libreoffice-extract.sh manual.odt --format html --output manual.html

# Extract as JSON with metadata
./scripts/libreoffice-extract.sh data.pdf --format json --output data.json

# Extract with cleaning and line limit
./scripts/libreoffice-extract.sh long_document.pdf --clean --lines 100 --output summary.txt

libreoffice-pdf.sh

PDF-specific operations including merge, split, optimize, and conversion.

# Merge documents into PDF
./scripts/libreoffice-pdf.sh merge chapter1.docx chapter2.odt --output book.pdf

# Split PDF into pages
./scripts/libreoffice-pdf.sh split document.pdf --output-dir ./pages

# Optimize PDF file size
./scripts/libreoffice-pdf.sh optimize large.pdf --compress 9 --remove-metadata

# Convert to PDF with quality settings
./scripts/libreoffice-pdf.sh convert presentation.pptx --output slides.pdf --quality high

# Show PDF information
./scripts/libreoffice-pdf.sh info document.pdf

# Extract content from PDF
./scripts/libreoffice-pdf.sh extract scanned.pdf --text --images --output-dir ./extracted

libreoffice-merge.sh

Merge multiple documents into a single document.

# Merge ODT files
./scripts/libreoffice-merge.sh chapter1.odt chapter2.odt --output book.odt

# Merge different formats with page breaks
./scripts/libreoffice-merge.sh intro.docx content.odt appendix.rtf --output complete.pdf --page-break

# Merge with table of contents
./scripts/libreoffice-merge.sh *.md --output documentation.odt --toc --title "User Manual"

# Merge sorted alphabetically
./scripts/libreoffice-merge.sh *.txt --output combined.odt --sort --author "Documentation Team"

Kernbefehle

Konvertierung (--convert-to)

# Basis-Syntax
libreoffice --headless --convert-to <Zielformat[:Filter]> --outdir <Verzeichnis> <Datei(en)>

# PDF aus verschiedenen Formaten
libreoffice --headless --convert-to pdf *.odt
libreoffice --headless --convert-to pdf *.docx
libreoffice --headless --convert-to pdf:writer_pdf_Export --outdir ./output *.doc

# Office-Formate
libreoffice --headless --convert-to docx *.odt
libreoffice --headless --convert-to odt *.docx
libreoffice --headless --convert-to xlsx *.ods
libreoffice --headless --convert-to xlsx:"Calc MS Excel 2007 XML" *.csv
libreoffice --headless --convert-to pptx *.odp

# Text extrahieren
libreoffice --headless --convert-to "txt:Text (encoded):UTF8" *.pdf
libreoffice --headless --convert-to html *.odt
libreoffice --headless --convert-to epub *.doc

Text-Anzeige (--cat)

# Textinhalt direkt auf Konsole ausgeben (kein Output-File)
libreoffice --headless --cat dokument.odt
libreoffice --headless --cat tabelle.xlsx

Drucken (--print-to-file)

libreoffice --headless --print-to-file --outdir ./output *.odt
libreoffice --headless --print-to-file --printer-name "PDF" --outdir ./output *.doc

Präsentationen anzeigen (--show)

libreoffice --show praesentation.odp  # startet Diashow

Dokumente öffnen (--view)

libreoffice --view dokument.odt  # schreibgeschützt

Format-Referenz

Eingabe→ PDF→ Modern→ Text
.odt / .doc / .docxpdfdocx / odttxt, html, epub
.ods / .xls / .xlsxpdfxlsx / odscsv, html
.odp / .ppt / .pptxpdfpptx / odphtml, png
.csvpdfxlsx / ods-
.txtpdfodt / docx-
.htmlpdfodttxt

Wichtige Filter

  • writer_pdf_Export — Writer→PDF mit Kontrolle
  • calc_pdf_Export — Calc→PDF
  • impress_pdf_Export — Impress→PDF
  • Text (encoded):UTF8 — UTF-8 Text-Export
  • MS Word 2007 XML — docx (Writer)
  • Calc MS Excel 2007 XML — xlsx (Calc)

Flags

  • --headless — Kein GUI (impliziert bei --convert-to)
  • --outdir <path> — Ausgabeverzeichnis (sonst cwd)
  • --infilter=<filter> — Eingabe-Filter erzwingen (z.B. für CSV-Encoding)
  • --convert-images-to <fmt> — Bilder im Dokument konvertieren
  • -env:UserInstallation=file:///tmp/loprofile — Eigenes Profil nutzen

Beispiele

CSV → Excel mit korrektem Encoding

libreoffice --headless --infilter="Text - txt - csv (StarCalc):44,34,0,1,1" \
  --convert-to xlsx:"Calc MS Excel 2007 XML" daten.csv --outdir ./export/

Batch: Alle ODT → PDF

libreoffice --headless --convert-to pdf *.odt --outdir ./pdfs/

HTML mit Bildkonvertierung

libreoffice --headless --convert-to "html:XHTML Writer File:UTF8" \
  --convert-images-to "jpg" bericht.docx

Text aus PDF extrahieren

libreoffice --headless --cat dokument.pdf | head -100

Mehrere Ordner gleichzeitig

find ./docs -name "*.doc" -exec \
  libreoffice --headless --convert-to pdf --outdir ./pdfs/ {} \;

Reference Documentation

Complete reference documentation is available in the references/ directory:

Format Reference

references/format-reference.md - Complete format support matrix with conversion options, MIME types, and compatibility information.

Filter Reference

references/filter-reference.md - Detailed filter parameters, options syntax, JSON configuration, and advanced usage examples.

Examples Collection

references/examples.md - Practical examples and real-world workflows including batch processing, automation, and integration patterns.

Integration with Other Skills

Joplin Notes Integration

#!/bin/bash
# Convert Joplin notes to PDF
joplin export --format md notes.md
./scripts/libreoffice-convert.sh notes.md pdf --output joplin_notes.pdf

Gmail Attachment Processing

#!/bin/bash
# Process email attachments automatically
gog mail get <email_id> --save-attachments ./attachments
./scripts/libreoffice-batch.sh ./attachments/ pdf --pattern "*.docx"

Web Content Conversion

#!/bin/bash
# Convert web articles to readable formats
web_fetch "https://example.com/article" --extractMode markdown > article.md
./scripts/libreoffice-convert.sh article.md pdf --quality high

Automated Document Pipeline

#!/bin/bash
# Complete document processing pipeline
INPUT_DIR="./incoming"
PROCESSED_DIR="./processed"

# 1. Health check
./scripts/libreoffice-check.sh health

# 2. Batch convert to PDF
./scripts/libreoffice-batch.sh "$INPUT_DIR" pdf --recursive --output "$PROCESSED_DIR"

# 3. Extract text for search indexing
find "$PROCESSED_DIR" -name "*.pdf" | while read pdf; do
    ./scripts/libreoffice-extract.sh "$pdf" --output "${pdf%.pdf}.txt" --clean
done

# 4. Create combined index
./scripts/libreoffice-merge.sh "$PROCESSED_DIR"/*.pdf --output "$PROCESSED_DIR/index.pdf" --toc

Tipps

  • Java-Warnungen (javaldx) können ignoriert werden — Grundfunktionen gehen ohne Java
  • Für parallele Konvertierungen: eigene Profile nutzen (-env:UserInstallation=...)
  • CSV: --infilter nutzen um Trennzeichen/Encoding zu setzen
  • Bei Fehlern: Dateiname ohne Leerzeichen/Sonderzeichen testen
  • Use the reference documentation for advanced filter options and JSON configuration
  • Check examples.md for complete automation workflows and integration patterns

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

76.25%
按下载量换算1,363

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills