Hello, I'm using jasperreports to create pdf document, it's work fine but now i want to disabled modify permission. I find this code : pdfExporter.setParameter(JRPdfExporterParameter.IS_ENCRYPTED, Boolean.TRUE); pdfExporter.setParameter(JRPdfExporterParameter.IS_128_BIT_KEY, Boolean.TRUE); pdfExporter.setParameter(JRPdfExporterParameter.USER_PASSWORD, "jasper"); pdfExporter.setParameter(JRPdfExporterParameter.OWNER_PASSWORD, "reports"); pdfExporter.setParameter(JRPdfExporterParameter.PERMISSIONS new Integer(PdfWriter.AllowModifyContents));
But when i want to read the pdf, the password is asked. But i want to read the pdf without enter password and when the user want to edit the pdf the password is asked. -- View this message in context: http://www.nabble.com/pdf-permissions-tf4855559.html#a13894412 Sent from the jasperreports-questions mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ jasperreports-questions mailing list jasperreports-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jasperreports-questions