PrintDialog and custom paper

I’m taking a look at this example from the gtkmm book and I can’t make it print on a custom paper.

I’ve checked the value of get_page_setup and it’s right but when I select the print option the paper size is grayed out.

The set_page_setup and set_print_settings method are being called.
So what’s going on?

Hi,

Are you using Ubuntu?

If yes, I heard they replaced the mature “cups” printing backend with a new one called “cpdb” which seems to lack a lot of features, at least for some printers. In that case better ask on an Ubuntu forum how to deal with that, and if not fixable if it’s possible to use the “cups” backend again.

No, I’m using fedora.