doc

Render and validate DOCX documents to PDF and PNG for inspection.

Updated Mar 17, 2026
One-click install
npx skills add https://github.com/Estom/aiflex --skill doc-estom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: doc
Source: https://github.com/Estom/aiflex/tree/main/skills-repo/openai-skills/doc
Command: npx skills add https://github.com/Estom/aiflex --skill doc-estom

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Provides a reliable workflow to read, edit, render, and validate DOCX files when visual layout, tables, pagination, and formatting fidelity matter, reducing the risk of delivering misformatted or unreadable documents.

Core Features & Use Cases

  • Visual rendering pipeline that converts DOCX to PDF and then to PNG images for page-by-page inspection.
  • Structured editing guidance recommending python-docx for programmatic changes and a bundled render script for visual checks.
  • Practical conventions for temporary files and final outputs to keep artifacts organized and reproducible.
  • Use cases include reviewing client reports, fixing contract formatting, validating tables and charts, and producing publication-ready DOCX deliverables.

Quick Start

Ask the assistant to review the attached report.docx, fix formatting issues, output the corrected DOCX to output/doc/, and provide a concise change summary.

Frequently Asked Questions about doc

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

FAQPage Schema
How do I validate DOCX layout and formatting before delivery?

You can validate DOCX layout by rendering documents to PDF and PNG images for page-by-page visual inspection. This Skill applies OOXML-aware DPI calculation to preserve formatting fidelity during rasterization, reducing the risk of delivering misformatted files.

What is the best way to programmatically edit DOCX files and check the visual output?

For programmatic DOCX edits, use python-docx to apply structured changes, then render the output to PNG for visual checks. This workflow ensures programmatic modifications are validated against the actual visual layout before delivery.

Do I need LibreOffice and Poppler installed to render DOCX files?

Yes, you need LibreOffice and Poppler installed alongside the pdf2image dependency to render DOCX files. These system tools handle the conversion pipeline from DOCX to PDF and subsequently to PNG images for inspection.

Can I fix contract formatting and table layout issues in a DOCX file?

Yes, you can fix contract formatting and validate tables in DOCX files by combining python-docx for structured edits with the visual rendering pipeline. This ensures pagination and table layouts are preserved accurately in the final output.

Why does my DOCX document look different after rendering to an image?

DOCX rendering differences often occur due to incorrect DPI calculation. This Skill applies OOXML-aware DPI calculation during the DOCX to PDF and PNG conversion to accurately preserve layout, pagination, and formatting fidelity.