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

Re: How to get EMF bits from a print processor? by Christoph

Christoph
Tue Jul 29 02:07:00 CDT 2008

http://www.undocprint.org/winspool/spool_files#reading_job_data
http://www.undocprint.org/formats/winspool/spl

--
Christoph Lindemann
Undocumented Printing
http://www.undocprint.org/


"Yannick Fortin" <fortiny@newsgroup.nospam> wrote in message
news:%23axZJ2C7IHA.2336@TK2MSFTNGP03.phx.gbl...
> 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



Re: How to get EMF bits from a print processor? by Yannick

Yannick
Mon Aug 04 16:03:34 CDT 2008

So there is no other way to get the EMF than parsing the spool file?
That's what I was trying to avoid... In that case, why is everyone
saying that it's better to have a print processor than to capture the
spool file directly from the file system?

Oh well. Thanks for the info.


Yannick


> http://www.undocprint.org/winspool/spool_files#reading_job_data
> http://www.undocprint.org/formats/winspool/spl
>
>> 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.