[WinPrnDev] Re: hook virtual printer

  • From: Steve Friedl <steve@xxxxxxxxxxx>
  • To: winprndev@xxxxxxxxxxxxx
  • Date: Tue, 20 May 2008 11:19:00 -0700

On Tue, May 20, 2008 at 08:04:18PM +0200, Riccardo wrote:
> Hello,
> I want the actual .doc , xls, pdf, txt document file that the application is
> printing
> because I want to store and manage the file that the user ( application )
> want to print.
> I'am a java developer with a little experience in c#,
> I'am not experience developing printer driver.

You won't ever get the original source document from *any* driver - it
doesn't work that way.

What you *think* is happening is that the appliation hands the document
to the driver for translation into printer codes, but that's not at all
how it works.

Instead, the application is processing the document and converting the
elements into graphics calls -- draw a line, set a font, shade a box, etc. --
and it's these generic graphics primitives that the driver responds to.

Though a driver might be able to say "Hmmm, this set of commands smells
like it's coming from Excel", it never gets a handle on the source document.

Steve

-- 
Stephen J Friedl | Security Consultant |  UNIX Wizard  |   +1 714 544-6561
www.unixwiz.net  | Tustin, Calif. USA  | Microsoft MVP | steve@xxxxxxxxxxx
---
Questions? First check the UndocPrint pages at 
http://www.undocprint.org/winspool

To unsubscribe, visit the List Server page at 
//www.freelists.org/list/winprndev

Other related posts: