Hi All, I want exact output of pdf of my .jrxml as it comes from ireport. But my servlet is not showing border. Here is the code below. Can anyone tell me the code ireport uses to export pdf. private void generatePDFOutput(HttpServletResponse resp, HttpServletRequest req, JasperPrintAccessor jasperPrintAccessor, String pageIdx, String reportFileName) throws JRException,NamingException, SQLException, IOException {ServletOutputStream ouputStream = resp.getOutputStream();byte[] bytes = null; JasperPrint jasperPrint = jasperPrintAccessor.getJasperPrint();JRPdfExporter exporter = new JRPdfExporter();exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); if (OrientationEnum.LANDSCAPE.equals(jasperPrint.getOrientationValue())){jasperPrint.setOrientation(OrientationEnum.LANDSCAPE);req.setAttribute("orientation", "LANDSCAPE");}bytes = JasperExportManager.exportReportToPdf(jasperPrint); resp.setContentType("application/pdf");resp.setContentLength(bytes.length);String reportType = req.getParameter("reportType");if(reportType != null)resp.setHeader("Content-Disposition", "attachment; filename=""+reportFileName+".pdf"");elseresp.setHeader("Content-Disposition", "inline; filename=""+reportFileName+".pdf"");//resp.getWriter().write(bytes, 0, bytes.length);ouputStream.write(bytes, 0, bytes.length);ouputStream.flush();ouputStream.close(); }