Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to get EMF bits from a print processor?

14 views
Skip to first unread message

Yannick Fortin

unread,
Jul 22, 2008, 2:59:32 PM7/22/08
to
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

Christoph Lindemann

unread,
Jul 29, 2008, 3:07:00 AM7/29/08
to
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" <for...@newsgroup.nospam> wrote in message
news:%23axZJ2C...@TK2MSFTNGP03.phx.gbl...

Yannick Fortin

unread,
Aug 4, 2008, 5:03:34 PM8/4/08
to
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

0 new messages