https://github.com/mikz/vodafone
Czech Vodafone PDF invoice parser
https://github.com/mikz/vodafone
Last synced: about 1 month ago
JSON representation
Czech Vodafone PDF invoice parser
- Host: GitHub
- URL: https://github.com/mikz/vodafone
- Owner: mikz
- Created: 2013-04-18T08:27:46.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-04-18T08:37:12.000Z (about 12 years ago)
- Last Synced: 2025-02-10T11:35:03.387Z (3 months ago)
- Language: Ruby
- Size: 113 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vodafone PDF invoice parser
I needed to extract values from all invoices got from Vodafone Czech.
So this script parses the PDF and outputs the values as csv.
Of course it can be updated to do whatever report you need.# Is this any good?
Sure! If you want to transfer you number to different operator you need data
to back up your decision. This provides the data for you.
Make a nice spreadsheet with all the variants and you are good!If you have detailed invoice with all the calls you made, this can also parse it.
But there is no reporter for this kind of invoice.## How to use it?
* `git submodule add pdf-reader https://github.com/mikz/pdf-reader.git` (adds some aliases needed by vodafone pdf)
* `bundle install`
* `./parse-pdf.rb invoices/*.pdf`
* profit!## Questions
If you want to hack your own reporter, just ask me and I can help!
The code is a bit mess right now :)All you should need is to create new method like `group_report`,
`inline_report` and new `Report` class.
Then add statement to switch on the bottom and you are good to go.## Contributions
All is welcomed!