Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to format ascii text and convert to pdf?

Status
Not open for further replies.

130272

MIS
Mar 31, 2003
3
NL
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!
 
hi,

Look at creating an overlay of the bank details in a seperate postscript document and merging them before running ps2pdf. We looked at this for our solution, but found our forms software was able to do what we wanted, so did not go down this path.

or

look up merging two pdf documents - a bit harder but possible.

Shane
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top