if (page1.getTemplateFactory().createTemplate().getPreferredOrientation() == Template.ORIENTATION_LANDSCAPE) {
pageFormat.setOrientation(PageFormat.LANDSCAPE);
}
final String jobName = map.getName();
final TemplatePrintingEngine engine = new TemplatePrintingEngine(map, template, showRasters);
printerJob.setPrintable(engine, pageFormat);
Job job = new Job(Messages.PrintAction_jobTitle){