1. Generic printer driver or print listener which listens to all printing happening on a windows system (XP/7/8/10)
2. Has persistent settings for following which gets asked on install.
a. Secondary Printer (out of the list of printers on the system).
b. Some random string input like name of user.
3. If print is NOT coming from a specific application (say Microsoft word), it passes the print to the secondary printer (set in 2a above).
4. If print is coming from a specific application:
a. Immediately shows a dialog and creates pdf of the input in the background
b. Dialog has 2 buttons ('Print', 'OK') and an input text field.
c. On pressing 'OK', a function is called which has two arguments - a. the text in the input field b. path to the created PDF. It does nothing. I will write the code inside this.
d. On pressing 'Print', the input stuff is printed to the secondary printer (set in 2a above).
I would first like to have a discussion about the method of implementation and review whole code on completion.