hello teodord, I am using PDf javascript in ireports to open the book mark of pdf document automatically. It works fine with ireports. But When i use that in Jasper reports it doesn't work. in the below code i can see the alert statement but not bookmark. Please help resp.setContentType("application/pdf"); JRPdfExporter pdfExporter = new JRPdfExporter(); pdfExporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); pdfExporter.setParameter(JRExporterParameter.OUTPUT_STREAM, servletOutputStream); //output refers to OutputStream. pdfExporter.setParameter(JRPdfExporterParameter.PDF_JAVASCRIPT, "app.execMenuItem('ShowHideBookmarks');app.alert('You have documents open');"); pdfExporter.exportReport(); Code: Post Edited by jasperforum at 09/07/2010 14:28