checkDevice(); if (printJob == 0) return false; double width = OS.gtk_page_setup_get_paper_width (pageSetup, OS.GTK_UNIT_POINTS); double height = OS.gtk_page_setup_get_paper_height (pageSetup, OS.GTK_UNIT_POINTS); int type = Cairo.cairo_surface_get_type (surface); switch (type) { case Cairo.CAIRO_SURFACE_TYPE_PS: Cairo.cairo_ps_surface_set_size (surface, width, height); break; case Cairo.CAIRO_SURFACE_TYPE_PDF: Cairo.cairo_pdf_surface_set_size (surface, width, height); break; }
public boolean startPage() {	return true;}