USB Device that acts like a printer [closed]

Our client uses some third party software and devices for their internal work. They print 600 pages per shift and now they wanted to eliminate paper usage without changing their existing systems.

There are LaserJet printers that are connected with desktop PCs and thermal printers that are connected with some small handheld devices which read data from third party cloud server.

Wanted Solution:

I was wondering if we cloud make some kind of programmed wifi enabled USB device (lets say ESP8266) that acts like a printer for PCs and handheld devices. When this device is connected it should be detected as printer and what it does is simply accepts prints and send it to our cloud server.

I know how to deal with all the cloud communications. What I just wanted to know is how to make my device detected as printer and access the file? Do I need to burn some kind of printer drivers in it or what.

• Desktop OS: Windows 7
• Handheld Device OS: Linux
• Printers: HP LaserJet
• Thermal Printer: Black Copper
• Printer Ports: USB A

EDIT

I know that there are various apps for print to pdf but we cannot use them because we dont have rights to directly copy files from these systems. External storage is disabled and we cannot even copy files and send over internet from this restricted pc. So we have only option to read that is coming to printers.

This is something similar that I want: USB Printer Emulator https://www.pclviewer.com/resources/capture/identity.html

closed as off-topic by laptop2d, The Photon, Leon Heller, brhans, Chris StrattonFeb 2 at 3:29

This question appears to be off-topic. The users who voted to close gave these specific reasons:

• "Questions seeking recommendations for specific products or places to purchase them are off-topic as they are rarely useful to others and quickly obsolete. Instead, describe your situation and the specific problem you're trying to solve." – laptop2d, Chris Stratton
• "Questions on the use of electronic devices are off-topic as this site is intended specifically for questions on electronics design." – The Photon, Leon Heller
If this question can be reworded to fit the rules in the help center, please edit the question.

• There is already software that emulates a printer to generate a PDF file, no need for a physical device at all. – Hearth Feb 1 at 17:17
• Take a look at the data that goes to the printer, then reconsider. Thermal printers drivers send what amounts to a picture to printer - you would have to make images from the data and use character recognition on it if you need to, say, read an invoice number out of it. Inkjets the same, multiplied by the number of color tanks. Postscript printers are your best bet - but I doubt the existing label printers are postscript. – JRE Feb 1 at 17:50
• Have you tried a google search for "usb printer emulator"? This is one of the first hits: pclviewer.com/resources/capture/print2usb.html – Edgar Brown Feb 1 at 18:04
• There are commercial products that take a literal "print stream" that assumed it was ending up at a line printer and redirect it for software manipulation somewhere else. This is used in places where there are some legacy systems no one wants to crack open and change but at the same time they don't want to keep printing reams of wide-carriage tractor-feed paper. But, as far as I know, these are minimally hardware based, other than knowing how to pull data off a serial or parallel port. As pointed out in the comments, how to make sense of the bytes in the print stream is the challenge. – user65586 Feb 1 at 19:48
• @Elliot not violating any agreement its just those systems are restricted by vendors. Its factory's own data, there isn't any legal challenge – UsamaAmjad Feb 1 at 20:27