https://github.com/slashgordon/buchhaltung
Renames invoices in pdf format based on the content of pdf and rules.
https://github.com/slashgordon/buchhaltung
cli pdf rename-files
Last synced: 15 days ago
JSON representation
Renames invoices in pdf format based on the content of pdf and rules.
- Host: GitHub
- URL: https://github.com/slashgordon/buchhaltung
- Owner: SlashGordon
- License: agpl-3.0
- Created: 2020-05-11T14:09:14.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-13T20:47:55.000Z (over 5 years ago)
- Last Synced: 2025-03-26T10:48:39.655Z (7 months ago)
- Topics: cli, pdf, rename-files
- Language: Go
- Homepage:
- Size: 81.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/SlashGordon/buchhaltung)
[](https://coveralls.io/github/SlashGordon/buchhaltung?branch=master)
# buchhaltung
## rename invoice
The renaming function reads the PDF and extracts variables for the renaming.
build binary with:
```shell
go get -d -v ./... && go build buchhaltung.go
```
Move all PDF invoices to a directory. At the moment we only support pure PDFs and not scans.
Create a json config file like:
```json
[
{
"outputname": "{number}_{company}.pdf",
"identifyers": {
"number": "Belegnummer\\s+(WF\\d{11})",
"company": "(weinfreunde)"
}
},
{
"outputname": "{number}_{company}.pdf",
"identifyers": {
"number": "Rechnungsnr.:\\s+(F\\d{11})",
"company": "(klarmobil)"
}
}
]
```
And run buchhaltung:
```shell
buchhaltung invoice -i /Users/test/bills -o /Users/test/bills/output -c /Users/test/
config_example.json
```