I am working on Jasper report which is required to be print in landscape orientation by default. This report I am generating in pdf, word and excel format. jrxml already setting properties for landscape, pageWidth="842" pageHeight="595" orientation="Landscape" and with this I am able to print by default in landscape for word and excel but not able to print pdf as landscape by default. I have tried using JasperDesign to set orientation landscape but still all pdf viewer are opening print as portrait.
JasperDesign design = JRXmlLoader.load(jasperTemplate);
JasperReport report = JasperCompileManager.compileReport(design);