Local Pandoc for Openclaw

A versatile document conversion skill that enables AI agents to transform Markdown files into professional PDFs, HTML, and Word documents using the Pandoc utility.

piyushduggal-source
v1.0.0
Jan 31, 2026
0
3.2k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install pandic-office

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install pandic-office using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Local Pandoc?

The Local Pandoc skill brings the power of the industry-standard document converter to your automated workflows. By integrating this capability into Openclaw Skills, AI agents can seamlessly bridge the gap between technical Markdown documentation and polished, distribution-ready formats. Whether you need to generate a standalone HTML page or a professionally typeset PDF, this skill provides the necessary interface to handle complex markup transformations locally.

Beyond simple format swaps, this skill supports advanced document processing features including template application, metadata management, and CSS styling. It is an essential tool for developers and content creators who use Openclaw Skills to automate their documentation pipelines and reporting tasks.

Local Pandoc Use Cases

  • Generating professional PDF reports from technical Markdown notes.
  • Converting GitHub README files into DOCX format for business stakeholders.
  • Creating standalone HTML documents with custom CSS styling for web hosting.
  • Extracting content from live URLs and converting it directly into Markdown for local processing.
  • Standardizing document heading levels and structures across a large set of project files.

How Local Pandoc Works

  1. The AI agent receives a request to convert a specific file or content string.
  2. The skill identifies the source format (e.g., Markdown) and the desired output format (e.g., PDF, DOCX).
  3. Openclaw Skills triggers the local pandoc binary with appropriate flags for styling, metadata, and engine selection.
  4. If PDF output is required, the skill utilizes a LaTeX engine like xelatex to render the final document.
  5. The converted file is saved to the local file system, ready for the user to access.

Local Pandoc Setup

To utilize this skill within Openclaw Skills, you must have Pandoc installed on your local machine. If you intend to generate PDF files, a LaTeX distribution is also required.

# Install Pandoc on macOS using Homebrew
brew install pandoc

# Install Pandoc on Linux (Ubuntu/Debian)
sudo apt-get update
sudo apt-get install pandoc

# (Optional) Install a LaTeX engine for PDF support
sudo apt-get install texlive-full

Local Pandoc Data Schema & Taxonomy

The Local Pandoc skill processes data through a structured command-line interface. The following table describes the primary data inputs handled by the skill:

Component Description
Input Format Automatically detected or defined via the -f flag (e.g., gfm, html, docx)
Output Format Target file type defined by extension or the -t flag
Metadata Key-value pairs injected via -M (e.g., author, title, date)
Variables Styling variables passed via -V for PDF/LaTeX control
Templates Path to custom .html or .docx reference files for branding

Local Pandoc Advanced Features

  • Multi-engine PDF support including xelatex and pdflatex for high-quality typography.
  • Automatic Table of Contents (TOC) generation with customizable depth settings.
  • Heading level shifting to ensure document hierarchy consistency during merges.
  • Standalone document generation (--standalone) to include necessary headers and footers.
  • Direct URL processing to convert web pages into various markup formats on the fly.
  • Reference document support for DOCX styling to match corporate identity standards.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*