Excel to PDF Converter for Openclaw

An automated command-line utility for converting Excel spreadsheets into beautifully formatted, print-ready A4 PDFs with native Chinese font support.

ncepuee
v1.0.0
Jun 23, 2026
0
440
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install excel2pdf

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 excel2pdf 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 Excel to PDF Converter?

The Excel to PDF Converter is a robust document formatting and generation utility designed to convert standard .xlsx files into highly professional, print-ready A4 PDF documents. Built to address common spreadsheet-to-print frustrations, this tool automatically handles page orientations, drops empty or placeholder columns, and applies uniform design rules. It is an excellent addition to your suite of Openclaw Skills, enabling seamless backend automation for administrative and operational workflows.

One of the key advantages of using this asset from Openclaw Skills is its built-in, cross-platform support for Chinese typography. It dynamically detects system-native Chinese fonts—Microsoft YaHei on Windows, PingFang on macOS, and Noto CJK on Linux—ensuring that Chinese text renders perfectly without any manual styling or configuration headaches.

Excel to PDF Converter Use Cases

  • Converting sign-in sheets and class rosters into high-quality physical sign-in pages.
  • Batch exporting operational spreadsheets to PDF for archiving or distribution.
  • Creating formatted reports with strict page boundaries and grid alignment.
  • Deploying headless server-side Excel-to-PDF generation workflows using Openclaw Skills.

How Excel to PDF Converter Works

  1. Excel Parsing: The utility loads the target .xlsx spreadsheet and identifies active rows, columns, and sheet data.
  2. Auto-Detection: It evaluates the table dimensions to auto-determine the ideal page orientation (landscape vs. portrait) and scans the operating system for suitable Chinese CJK fonts.
  3. Data Cleansing: The tool filters out empty or unused columns to optimize grid space.
  4. Styling & Layout Engine: It maps the remaining data cells to a custom grid layout using standard colors (such as executive blue headers) and adjustable margins.
  5. PDF Compilation: The tool compiles the layout and exports the styled PDF directly to the specified destination path.

Excel to PDF Converter Setup

To use this extension from Openclaw Skills, you need Python installed on your system along with the necessary rendering libraries.

Install the required dependencies via pip:

pip install openpyxl reportlab

Once installed, execute the conversion script on your target Excel file:

python scripts/excel_to_pdf_signin.py 'path/to/your_sheet.xlsx'

Excel to PDF Converter Data Schema & Taxonomy

Data Structure and Output Formatting

This tool operates directly on standard Excel spreadsheets and outputs highly structured PDF documents.

Supported Input File Types

File Extension Description Notes
.xlsx Microsoft Excel Open XML Spreadsheet Active or specified sheet is extracted

Styling and Design Specifications

  • Colors: Solid blue header rows (#4472C4) with white text, complemented by standard white body rows and black grid borders.
  • Orientation: Dynamically switches to Portrait if there are <= 6 columns and <= 35 rows. Switches to Landscape for >= 7 columns or > 35 rows.
  • Fonts: Microsoft YaHei (Windows), PingFang (macOS), Noto CJK (Linux). Font sizes are default at 10pt (adjustable).

Excel to PDF Converter Advanced Features

  • Auto-Orientation Logic: Intelligently toggles between Landscape and Portrait modes based on row and column density to prevent text cutoff.
  • Precision Column Control: Selectively compile specific columns using 0-based indexing and apply custom width percentage ratios.
  • Multi-Sheet Extraction: Specify exactly which workbook sheet to target when handling complex, multi-tab Excel files.
  • Manual Grid Overrides: Customize cell padding, row heights, and margins to fit tight sign-in lists or sparse room rosters.
  • Headless Pipeline Integration: Easily integrate this script with other Openclaw Skills and agent automation frameworks.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*