checkDevice(); byte [] buffer = Converter.wcsToMbcs (null, jobName, true); printJob = OS.gtk_print_job_new (buffer, printer, settings, pageSetup); if (printJob == 0) return false; surface = OS.gtk_print_job_get_surface(printJob, null); if (surface == 0) { OS.g_object_unref(printJob); printJob = 0; return false; } cairo = Cairo.cairo_create(surface); if (cairo == 0)  { OS.g_object_unref(printJob); printJob = 0; return false; }
public boolean startJob(String jobName) {	return true;}