|
Printer Development |
Top Previous Next |
|
Printer Development For software developer who develops an application that uses PDF4U or PDF4Free, it should be mentioned that PDF4U Adobe PDF Creator works as a normal printer, and you may control the output using standard Win32 API. if you want to specify the destination file path and file name, all you need to do is to use the Microsoft DOCINFO structure and the StartDoc function. Set the lpszOutput field of the DOCINFO structure to the fully qualified path name of the file, and then pass the DOCINFO structure to the Win32 StartDoc function. In this way, each file can be created using a unique name. You can control the paper size, orientation, resolution, printing job titile, and other settings using the Win32 API and the DEVMODE structure as defined in the Microsoft SDK and Microsoft DDK (Printer Chapter). Microsoft Knowledgebase article Q167345 describing how to change printer settings using the Win32 API will be useful to you, http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q167345 |