of a document when printing it to PDF programmatically?
There are three ways you can change the resolution depending on your application:
1 - If you are using the DEVMODE structure and a Device Context to handle the printing, you can directly use the Resolution field of the DEVMODE structure.
2 - If you are using the CDICreateDC function of the CDINTF DLL, use the SetResolution function.
3 - If you are using some external tool to handle the printing, you’ll need to make the required resolution as default by calling SetDefaultConfig right after SetResolution.