Windows Printer Interface

Top  Previous  Next

Win2PDF interfaces with an application using standard Windows printer APIs.  Whenever possible, Win2PDF uses standard Windows APIs instead of defining new interfaces.


If you are a software developer and are developing an application that uses Win2PDF, you can also control the output filename using the standard Win32 API. To specify the file name you need to use the Microsoft defined 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. Using this method, each file can be created using a unique name.


You can control the orientation, resolution, and other settings using the Win32 API and the DEVMODE structure as defined in the Microsoft Platform SDK.  The Microsoft Knowledgebase article Q167345 available at:;EN-US;Q167345

describes how to change printer settings using the Win32 API.