mercredi 28 mai 2014

Windows - données envoyées à l'imprimante lorsque je clique sur Imprimer - Stack Overflow


I'm doing a project to build printer using a microcontroller via USB. The MCU's USB is configured as printer class when I plug the MCU into the PC so that it is identified as a printer. I've installed generic/text only driver available with windows and hence i can see my printer in "devices and printers" listed under printer category. My question here is if I want to print whatever is sent to the printer, I need to know the data being sent from PC. For example, if I print a pdf, I want to know what data is sent i mean the format like HEX values or anything like that. Once I know what is coming into the controller I can print. Any input here is welcome.


Thanks in advance




Well, since your printer setting is a simple generic/text only, the data sent will be the text content of the PDF. No markup, not even bold text or italics. Any pictures in the PDF will not be sent at all.


If you wan more than that, you can write a driver for your printer. As the driver writer, you determine what's sent to the printer.



I'm doing a project to build printer using a microcontroller via USB. The MCU's USB is configured as printer class when I plug the MCU into the PC so that it is identified as a printer. I've installed generic/text only driver available with windows and hence i can see my printer in "devices and printers" listed under printer category. My question here is if I want to print whatever is sent to the printer, I need to know the data being sent from PC. For example, if I print a pdf, I want to know what data is sent i mean the format like HEX values or anything like that. Once I know what is coming into the controller I can print. Any input here is welcome.


Thanks in advance



Well, since your printer setting is a simple generic/text only, the data sent will be the text content of the PDF. No markup, not even bold text or italics. Any pictures in the PDF will not be sent at all.


If you wan more than that, you can write a driver for your printer. As the driver writer, you determine what's sent to the printer.


0 commentaires:

Enregistrer un commentaire