Intercepting receipt printer data and storing it

I have been scouring the internet for a solution to intercept receipt printer data to be stored and used later on. I need a solution to sit outside of a POS system. Ideally, after/during a receipt is being printed from a sale in a POS system we intercept this and save it as a PDF/csv etc so that it can then be used later on. We would like the receipt to still be printed, but also have a digital version saved.

I found a software called HookPrinter SDK (http://www.verypdf.com/app/hookprinter/index.html) which could be used in conjunction with their SPL to PDF software to turn both capture the spooling file and turn into a pdf. Unfortunately, it’s super clunky and barely works at all without having to setup numerous safeguards such as opening it by default when the computer boots to avoid it having to be installed manually every-time. On top of the that, it costs $700 USD per computer, the license has to be unique to each machine.

Does anyone have any suggestions for achieving this? Is there other software that I have not been able to locate that will do this? Could I perhaps write a script to grab the spooling file myself?

Would really appreciate anyones thoughts here.

Thanks,
Cooper