https://github.com/moralcode/averytemplateextractor
A tool to extract avery template measurements from docx files
https://github.com/moralcode/averytemplateextractor
Last synced: 6 months ago
JSON representation
A tool to extract avery template measurements from docx files
- Host: GitHub
- URL: https://github.com/moralcode/averytemplateextractor
- Owner: MoralCode
- Created: 2023-02-06T01:08:16.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-09T02:58:22.000Z (almost 3 years ago)
- Last Synced: 2025-04-07T03:33:52.723Z (10 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AveryTemplateExtractor
This little python script analyzes a `.docx` file containing a table (such as [avery's templates](https://www.avery.com/templates)) and prints out a series of key, value pairs representing the different parameters needed to recreate the template.
Written and tested on a linux machine.
## Setup and usage
1. `pipenv install` dependencies
2. `pipenv run python3 ./templateextractor.py ./path/to/docx/file.docx`
The file *must* be converted to docx first. this can be done with one of many commands, such as `unoconv -d document --format=docx *.doc`. Other GUI/CLI tools, like libreoffice/soffice, and pandoc can also be used for this.