I need to take one or more files(.txt or .csv format only), convert them, one at a time and sent them to the printer in PostScript format.
The paper will be pre-printed and of A4 size. It is perforated in the middle(Portrait orientation).
For example, taking a file, A.txt, I would need to print it's content starting from the top of the A4 sheet. If the content of the .txt file is more than can fit in the top half (i.e above the perforation) it needs to be ignored. The same content needs to be printed again below the perforation.
What is the best way of doing this?
From my research of this article http://www.adobe.com/print/features/psvspdf/ , it appears that I can make use of PDF format, if PostScript isn't feasible.
If the above is true I might be able to use the code provided here http://www.codeproject.com/Articles/12266/Convert-a-Text-File-to-a-PDF-File for the conversion. But there is no way to divide the page into 2.
Another approach is to create 2 pages of A5(It's half of A4)size and then merge them to an A4 size.
I would like to do this in the fastest and cheapest way.