Ther's no possibilities to know the Width and Height of a doc converted by PDFConverter on a Win9x Machine?
On NT platform, i use the GetJob function, but it doesen't work on win9x, because PDFConv doesen't spool the job.
Bye...
Paper Width - Height
Paper Width - Height (Workaround for Windows 9x)
I am assuming that you are using the event handler to get the JobID. If not you would need to setup an event handler to intercept the printer driver messages.
Under Windows 9x, you can use the hDC parameter instead of JobId, and use GetDeviceCaps( hDC, PHYSICALWIDTH ) and GetDeviceCaps( hDC, PHYSICALHEIGHT ) to get the width and height of the current page.
Note that you cannot use the hDC parameter on Windows 2000 unless the DLL that processes events runs in the same process as the printing application, so you need to stick to the JobID parameter.
Under Windows 9x, you can use the hDC parameter instead of JobId, and use GetDeviceCaps( hDC, PHYSICALWIDTH ) and GetDeviceCaps( hDC, PHYSICALHEIGHT ) to get the width and height of the current page.
Note that you cannot use the hDC parameter on Windows 2000 unless the DLL that processes events runs in the same process as the printing application, so you need to stick to the JobID parameter.
Post subject: Paper Width - Height
Thanks for suggestion. I use GetDeviceCaps(hDC,DM_RASPRINTER + HORIZSIZE). This func doesn't return the mm of page set by the client application, but i can understand if the paper size is A4 or not.
In win NT the problem doesn't exists... GetJob() API make it all fine.
Ciao!
In win NT the problem doesn't exists... GetJob() API make it all fine.
Ciao!