Fill in your Word document templates with a sleek GUI - because manually replacing placeholders is so 2005.
Docx Template is a simple yet powerful tool that allows you to quickly fill out docx templates through a friendly user interface. No more manually hunting for placeholders - this app finds them all and presents them as a neat form for you to fill out.
Think of it as a document secretary that doesn't need coffee breaks or complain about papercuts.
- Template Selection: Easily choose from your available templates
- Dynamic Form Generation: Automatically identifies all placeholders in your template
- Custom Output Naming: Save your filled documents with custom filenames
- Simple Interface: No complex menus or confusing options
- Place your template docx files in the
data/
folder - Run the application
- Select your template from the dropdown
- Fill in the fields that appear
- Name your output file
- Click submit
- Find your completed document in the
output/
folder
- Python 3.6+
- PyQt6
- Spire.Doc
# Clone the repository
git clone https://github.com/yourusername/Docx-template.git
cd Docx-template
# Install dependencies
pip install PyQt6 spire.doc
python main.py
The application looks for placeholders in your Word documents that follow this format:
*PlaceholderName*
For example, if your document contains *Name*
, the application will create a field labeled "Name" for you to fill in.
Docx-template/
├── data/ # Place your .docx templates here
├── output/ # Filled documents will be saved here
├── main.py # The main application script
└── README.md # This helpful file you're reading now
Found a bug? Have a feature idea? Pull requests are welcome! Just make sure your code doesn't have as many placeholders as the templates it's filling.
MIT - Use it, improve it, share it. Just don't blame me when your boss keeps asking you to make "just one more quick template."
Happy templating!