Python Print Email invoice
Budget: $30 – $250 USD
Investigation project. I want to produce a document from a csv file. I was assuming that we would use python to do this project.
The python program will be run from the command line. i.e. python printinv.py emailaddress. or python printinv.pk c:\inv\00001.pdf
It will have a configuration file for the smtp server details. Static data like logo file, company details etc
depending on if it is run with an email address or file path, it will produce a pdf of the document. and either save it to the path, or email it to the end user. (with a bcc address for a local email copy)
It is very important that the document is formatted correctly with a "number of printable lines" so that if it continues on to multiple pages they are numbered and formatted correctly.
The program should be documented so that in future changes can be made to the layout if required.
The program will read each line of the csv file and process it. if it changes pages it will have .....continued on the bottom of the page rather than totals and then the totals on the last page. All values will be supplied in the csv file no calculations are required.
An example invoice is attached. You will note the layout is not perfect. The invoice should have a Header and Footer of a predefined size and then the detail lines in the middle. The app will have a XX lines in the configuration, to allow the length of paper to be adjusted and make the decision to go to page 2
The python program will be run from the command line. i.e. python printinv.py emailaddress. or python printinv.pk c:\inv\00001.pdf
It will have a configuration file for the smtp server details. Static data like logo file, company details etc
depending on if it is run with an email address or file path, it will produce a pdf of the document. and either save it to the path, or email it to the end user. (with a bcc address for a local email copy)
It is very important that the document is formatted correctly with a "number of printable lines" so that if it continues on to multiple pages they are numbered and formatted correctly.
The program should be documented so that in future changes can be made to the layout if required.
The program will read each line of the csv file and process it. if it changes pages it will have .....continued on the bottom of the page rather than totals and then the totals on the last page. All values will be supplied in the csv file no calculations are required.
An example invoice is attached. You will note the layout is not perfect. The invoice should have a Header and Footer of a predefined size and then the detail lines in the middle. The app will have a XX lines in the configuration, to allow the length of paper to be adjusted and make the decision to go to page 2