doc

Render DOCX pages to PNG images for visual layout review.

167|34|Updated Jan 3, 2026
One-click install
npx skills add https://github.com/tercumantanumut/selene --skill doc-tercumantanumut
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: doc
Source: https://github.com/tercumantanumut/selene/tree/main/lib/skills/catalog/bundled/doc
Command: npx skills add https://github.com/tercumantanumut/selene --skill doc-tercumantanumut

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Preserve the visual layout and fidelity of DOCX documents when reading, reviewing, or editing so that tables, pagination, diagrams, and formatting are inspected and corrected before delivery.

Core Features & Use Cases

  • High-fidelity rasterization of DOCX pages to PNG for visual review and layout validation.
  • Programmatic editing guidance using python-docx combined with a render loop to re-render and inspect after changes.
  • Automatic DPI calculation from OOXML or PDF, and robust conversion fallbacks using LibreOffice and Poppler.
  • Use Case: Validate client-ready reports, contracts, or design-rich documents where pagination, tables, and charts must be precisely aligned.

Quick Start

Render the file report.docx to PNG pages with the bundled render_docx.py and inspect the images in the output directory.

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 images for visual layout review?

To render DOCX files to images, use the bundled render_docx.py script to convert pages to PNG. This process requires LibreOffice (soffice) and Poppler (pdftoppm), or the pdf2image dependency, to rasterize documents for visual inspection.

How does python-docx work with a render loop for document editing?

python-docx enables programmatic editing of DOCX content, which pairs with a render loop to re-render and inspect the document after modifications. This ensures pagination, tables, and formatting are validated before final delivery.

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

Yes, LibreOffice (soffice) and Poppler (pdftoppm) are required system tools for converting DOCX to PDF and rasterizing pages. The pdf2image dependency also facilitates this conversion process.

What is the best way to validate pagination and tables in client deliverables?

Validating pagination and tables in client deliverables involves rasterizing DOCX pages to PNG images for visual review. This ensures high-fidelity layout inspection, automatically calculating DPI from OOXML or PDF.

Can I use pdf2image to inspect DOCX formatting changes?

Yes, pdf2image facilitates rasterizing DOCX pages to PNG, allowing you to inspect formatting changes. By applying a render loop with python-docx, you can programmatically edit and visually verify the document layout.

Why does my DOCX rasterization require automatic DPI calculation?

Automatic DPI calculation from OOXML or PDF ensures pixel-perfect fidelity when rasterizing DOCX documents. This maintains the visual accuracy of tables, charts, and pagination during the conversion to page images.