Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I know one way to do that. You need to create a Print Processor. The print processor is a driver that can change or read data before it is sent to the Print Monitor (This is the driver that emit things in proprietary format to the printer port). </p> <p>See here a global view of the printing architecture <a href="http://technet.microsoft.com/en-us/library/cc976755.aspx" rel="nofollow noreferrer">http://technet.microsoft.com/en-us/library/cc976755.aspx</a>. Here is a description of what a Printer Processor does: <a href="https://serverfault.com/questions/304536/what-is-the-reason-for-choosing-a-different-print-processor">https://serverfault.com/questions/304536/what-is-the-reason-for-choosing-a-different-print-processor</a>.</p> <p>How to change the print processor by using PowerShell: <a href="http://blogs.technet.com/b/chad/archive/2012/10/31/tip-52-mixing-the-old-and-new-setting-a-printer-s-print-processor-using-powershell-wmi-and-setprinter-exe.aspx" rel="nofollow noreferrer">http://blogs.technet.com/b/chad/archive/2012/10/31/tip-52-mixing-the-old-and-new-setting-a-printer-s-print-processor-using-powershell-wmi-and-setprinter-exe.aspx</a></p> <p>And here is a sample on how to do it (i.e., to create a print processor): <a href="http://code.msdn.microsoft.com/windowshardware/Genprint-4a71134f" rel="nofollow noreferrer">http://code.msdn.microsoft.com/windowshardware/Genprint-4a71134f</a>.</p> <p>To make it work you will need to redirect GdiPlayPageEMF to a bitmap on memory, then you can count its pixels before it is send to the handle of the printer. You can search about GdiPlayPageEMF on Google, there will be interesting results on how to do this kind of thing.</p> <p>Also, there are a lot of good info about printing here <a href="http://www.undocprint.org/winspool/spool_files#reading_job_data" rel="nofollow noreferrer">http://www.undocprint.org/winspool/spool_files#reading_job_data</a>.</p> <p>I hope this helps.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload