How to get EMF bits from a print processor?

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi all.

I have read all the DDK documentation and the archives here talking about print processors, EMF vs RAW spooling, etc. Ashwin's posts have been quite informative on this subject.

One thing eludes me, though. Like many others, I am trying to get access to the EMF (more precisely, the EMF in the spool file, I am aware of the file formats, etc.) to extract the text from it. Some of the previous threads on the subject said that the print processor would be the place to do that.

Problem is: how do I get access to the EMF from the print processor? From my understanding, the print processor requests and receives EMF *handles* before giving them back to GDI with GdiPlayPageEMF.

Can you call GetEnhMetaFileBits with this handle? This seems unlikely since that function expects an HEMHMETAFILE, not a HANDLE -- unless the HANDLE is really an HENHMETAFILE? Or maybe treat the handle as a pointer to the EMF bits?

Thanks for any information you may share on this subject.


Yannick
.



Relevant Pages

  • Re: Printer Driver: Save to PCL and EMF file.
    ... that are only valid in the print processor process. ... Also keep in mind that the code for reading the emf from a spool file will ... be different for Win98/Me than it is for Win2K/XP. ...
    (microsoft.public.development.device.drivers)
  • Re: How to get EMF bits from a print processor?
    ... So there is no other way to get the EMF than parsing the spool file? ... That's what I was trying to avoid... ... I have read all the DDK documentation and the archives here talking about print processors, EMF vs RAW spooling, etc. Ashwin's posts have been quite informative on this subject. ... Some of the previous threads on the subject said that the print processor would be the place to do that. ...
    (microsoft.public.development.device.drivers)
  • Re: Lexmark X73 printer and Windows XP Home
    ... printers and faxes, right-clicked on Lexmark X83, properties, clicked ... the advanced tab, clicked Print Processor, changed the Print Processor ... to WinPrint and tried the default data type NT EMF 1.008: ...
    (microsoft.public.windowsxp.print_fax)
  • Re: Lexmark x83
    ... the advanced tab, clicked Print Processor, changed the Print Processor ... to WinPrint and tried the default data type NT EMF 1.008: ...
    (microsoft.public.windowsxp.print_fax)
  • Re: Lexmark printing
    ... the advanced tab, clicked Print Processor, changed the Print Processor ... to WinPrint and tried the default data type NT EMF 1.008: ...
    (microsoft.public.windowsxp.print_fax)