Tracing the problem a bit further: cairo_win32_surface_create() is being called with a null HDC for print. The normal calls to that function are receiving valid HDCs.
Tracing the problem a bit further: cairo_win32_ surface_ create( ) is being called with a null HDC for print. The normal calls to that function are receiving valid HDCs.