Paper size confusion  SOLVED

PDF-XChange Drivers API (only) V4/V5
This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers SDK (only) - VERSION 4 & 5 - Please use the PDF-Tools SDK Forum for Library DLL assistance.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Chris - Tracker Supp, Tracker Supp-Stefan

Post Reply
musabio
User
Posts: 26
Joined: Tue Jun 20, 2006 12:22 am

Paper size confusion

Post by musabio » Sat Apr 25, 2015 7:36 pm

In the process of upgrading from the v3 to v5 driver, I noticed that the paper size logic has changed, or I don't understand how it works. Previously (v3), the initial default paper size was determined by the driver Printing Preferences Settings dialog. Now it appears to be forced to A4, regardless of the driver Settings dialog. Is this correct? And if so, is it by design, or is it a bug?

I can override it by explicitly setting the Paper.SheetSizeIndex property, but I'm not sure of the recommended procedure for deciding what the user's default should be. Is it: create a DC for the static driver, retrieve its DEVMODE to get it's paper size, dispose of that DC, then create the IPXCPrinter, then set the paper size? That's doable, but does seem a bit roundabout.

Also, when it comes to setting the paper size, I noted in some other posts relating to this topic mention of both the Paper.xxx and DevMode.xxx property groups. But where is the DevMode property table documented? (I don't see it in either the online or PDF documents for the driver API).

Any guidance would be appreciated.
Thanks,
Jack

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 14054
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Paper size confusion

Post by Tracker Supp-Stefan » Mon Apr 27, 2015 10:30 am

Hello Jack,

Yes there has been a change of logic. As for determining the default size - for most of the world A4 would be OK, and for the US/Canada you could set it to Letter / AnsiA - you can determine this using the locale ID on each end user's machine.

Regards,
Stefan

musabio
User
Posts: 26
Joined: Tue Jun 20, 2006 12:22 am

Re: Paper size confusion

Post by musabio » Mon Apr 27, 2015 9:36 pm

Understood. Not thrilled, but I can implement a workaround for people who don't prefer to use the locale default size.
Thanks,
Jack
p.s. I'm going to follow up on the DevMode question separately.

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 14054
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Paper size confusion

Post by Tracker Supp-Stefan » Tue Apr 28, 2015 12:11 pm

:)

Post Reply