doc

Render DOCX-like documents to PNG images via headless LibreOffice.

1|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/UntLab/codex --skill doc-untlab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: doc
Source: https://github.com/UntLab/codex/tree/main/config/codex-skills/doc
Command: npx skills add https://github.com/UntLab/codex --skill doc-untlab

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pdf2image, and includes scripts (resource) components.

What problem does it solve?

Render DOCX-like documents to PNG images to enable reliable visual validation of layout, typography, and page breaks.

Core Features & Use Cases

  • Deterministic rendering of DOCX family formats via LibreOffice soffice in headless mode.
  • Fallback rendering via ODT conversion and subsequent PDF rasterization for robust handling of non-native formats.
  • DPI-aware scaling and stable, navigable output directories for developer-friendly review.
  • Supports batch processing by taking a single file or folder input for page-by-page validation.

Quick Start

Render a DOCX file to a folder of PNG pages for quick visual checks.

Frequently Asked Questions about doc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I render DOCX files to PNG images for visual layout review?

To render DOCX files to PNG images for visual layout review, this Skill uses a headless LibreOffice (soffice) render path to convert documents into page-by-page PNGs. It enables reliable visual validation of formatting, typography, and page breaks.

Do I need LibreOffice and Poppler installed to convert DOCX to PNGs?

Yes, you need LibreOffice (soffice) and Poppler system tools installed to convert DOCX to PNGs. The Skill also requires the Python pdf2image package to rasterize PDFs during the fallback ODT conversion process.

Can I batch process DOCX files to generate PNGs for page-by-page validation?

Yes, you can batch process DOCX files to generate PNGs for page-by-page validation. The Skill accepts either a single file or a folder input, creating stable, navigable output directories with DPI-aware scaling for developer-friendly review.

What is the best way to visually validate DOCM and DOTX formatting?

The best way to visually validate DOCM and DOTX formatting is using deterministic rendering via headless LibreOffice. This Skill supports the DOCX family formats, applying a fallback through ODT conversion and PDF rasterization for robust handling.

Why does DOCX to PNG conversion fail without headless soffice permissions?

DOCX to PNG conversion fails without headless soffice permissions because the rendering mechanism requires system-level access to run headless conversions. Appropriate permissions are necessary to execute the soffice render path and Poppler rasterization successfully.