Hello,
Our billing application outputs invoices in plain ascii files. Our management would like to have these converted in pdf files.
One spoolfile can contain multiple invoices. Basic layout of a spoolfile:
- Account details
- Invoice number
- Multiple lines containing items
- Summary
- Page break
With a2ps and ps2pdf I'm able to convert this to pdf.
However, our management also decided that the bank details must be included at the bottom every page in a different font and font size. Desired layout:
- <font A ; size 1>
- Account details
- Invoice number
- Multiple lines containing items
- Summary
- <font B ; size 2>
- Band details
- Page break
This is where I run out of options. With sed/awk it should be possible to insert the bank details. But I have no clue how to handle the different fonts and font sizes.
Any idea is welcome!
Our billing application outputs invoices in plain ascii files. Our management would like to have these converted in pdf files.
One spoolfile can contain multiple invoices. Basic layout of a spoolfile:
- Account details
- Invoice number
- Multiple lines containing items
- Summary
- Page break
With a2ps and ps2pdf I'm able to convert this to pdf.
However, our management also decided that the bank details must be included at the bottom every page in a different font and font size. Desired layout:
- <font A ; size 1>
- Account details
- Invoice number
- Multiple lines containing items
- Summary
- <font B ; size 2>
- Band details
- Page break
This is where I run out of options. With sed/awk it should be possible to insert the bank details. But I have no clue how to handle the different fonts and font sizes.
Any idea is welcome!