How do I change the resolution ...

This is a read only forum. It contains the most frequently asked questions about Amyuni products and licensing.
Post Reply
Dany
Amyuni Team
Posts: 113
Joined: Wed Sep 11 2002
Location: Montreal.
Contact:

How do I change the resolution ...

Post by Dany » Fri Aug 05 2005

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.

Post Reply