doc

Convert DOCX-like documents into per-page PNG previews with DPI-aware rasterization.

2|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/metric-space-ai/ctox --skill doc-metric-space-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: doc
Source: https://github.com/metric-space-ai/ctox/tree/main/skills/packs/content/doc
Command: npx skills add https://github.com/metric-space-ai/ctox --skill doc-metric-space-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines turning DOCX documents into visual previews by rasterizing pages into PNG images for quick review and validation.

Core Features & Use Cases

  • Render DOCX-like documents into per-page PNG previews using the bundled render_docx.py script.
  • Auto-detect DPI from OOXML page dimensions or PDF with a robust fallback and clear error handling.
  • Output organized artifacts to a predictable directory and provide guidance on environment requirements and dependencies.

Quick Start

Render the provided DOCX file to page PNGs for visual review.

Frequently Asked Questions about doc

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

FAQPage Schema
How do I render a DOCX file into PNG images for visual verification?

To render a DOCX file into PNG images for visual verification, this Skill rasterizes document pages into high-resolution previews using LibreOffice and pdf2image. It auto-detects DPI from OOXML dimensions to ensure accurate, per-page visual output for archival documentation.

Can I convert DOCM and DOTX formats to per-page image previews?

Yes, you can convert DOCM and DOTX formats to per-page image previews. The rasterization process applies to DOCX-like documents, handling these related Microsoft Word formats to generate predictable PNG artifacts for quick visual review and validation.

Do I need LibreOffice and pdf2image installed to rasterize DOCX pages?

Yes, you need LibreOffice's soffice and the pdf2image dependency installed to rasterize DOCX pages. The script validates inputs, dependencies, and output paths, providing clear error reporting across environments if these rendering prerequisites are missing or improperly configured.

What is the best way to automate DOCX to image conversion for archival documentation?

The best way to automate DOCX to image conversion for archival documentation is using a script that validates inputs and applies DPI-aware rasterization. This approach ensures safe, reproducible results by organizing output artifacts into a predictable directory structure.

Why does my DOCX rasterization output have incorrect resolution or fail to render?

DOCX rasterization fails or yields incorrect resolution when DPI auto-detection encounters invalid OOXML page dimensions or missing dependencies. The script implements robust fallbacks and clear error reporting to handle these edge cases, ensuring safe and reproducible visual verification outputs.