docx-splitting

Split DOCX documents into page-based parts using Word COM automation.

7|1|Updated May 9, 2026
One-click install
npx skills add https://github.com/black-yt/skills --skill docx-splitting
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: docx-splitting
Source: https://github.com/black-yt/skills/tree/main/docx-splitting
Command: npx skills add https://github.com/black-yt/skills --skill docx-splitting

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps you break a large .docx document into smaller page-based parts while preserving as much of the original Word layout, images, tables, and pagination behavior as possible.

Core Features & Use Cases

  • Page-based splitting: Divides a document into multiple .docx files based on page ranges rather than manual copy-paste.
  • Word COM automation: Uses Microsoft Word on Windows to reuse the native pagination engine for more faithful results.
  • Practical workflow: Useful when you need to share, review, archive, or process only portions of a long report, manuscript, or proposal.
  • Script-backed execution: Includes a ready-to-run Python utility for deterministic splitting and output generation.

Quick Start

Ask the skill to split your .docx file into a chosen number of page-based parts and save the results to a separate output folder.

Frequently Asked Questions about docx-splitting

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

FAQPage Schema
How do I split a Word document into separate files by page?▼

To split a Word document by page, this Skill uses pywin32 and Microsoft Word COM automation to compute pagination, copy formatted ranges, and save each page-based part as a new .docx file.

Does docx-splitting preserve the original formatting, images, and tables?▼

Yes, docx-splitting preserves original formatting, images, and tables by leveraging the native Microsoft Word pagination engine via COM automation to copy formatted ranges into new .docx files.

Can I use this docx splitting script on macOS or Linux?▼

No, this docx splitting script applies to Windows only because it requires Microsoft Word and pywin32 COM automation to compute pagination and copy formatted ranges.

Do I need Microsoft Word installed to split docx files with this script?▼

Yes, you need Microsoft Word installed on Windows because the script relies on pywin32 COM automation to access the native Word pagination engine for accurate page-based splitting.

What is the best way to divide a long Word manuscript into page-based parts?▼

The best way to divide a long Word manuscript is using this script, which leverages Word COM automation to compute page ranges and save each section as a separate formatted .docx file.

Why does splitting a docx by page lose pagination fidelity when using standard Python libraries?▼

Standard Python libraries lack the native Word pagination engine, whereas this script uses pywin32 COM automation to compute accurate pagination and copy formatted ranges for faithful results.