[jasperreports-questions] pdf permissions

2007-11-22 Thread so

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-tf489.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/vse012070mrt/direct/01/
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions


Re: [jasperreports-questions] pdf permissions

2007-12-12 Thread so

Hi,

If i set the USER_PASSWORD to "", the password is not asked when the pdf is
open.
I change also the permission to PdfWriter.AllowPrinting.
But now i don't know where i can give the OWNER_PASSWORD for changing the
permissions directly in the pdf editor, or better if it's possible to give
differents permissions for user and owner.

If someone can help me ...

BR
So


so wrote:
> 
> 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-tp13894412p14291512.html
Sent from the jasperreports-questions mailing list archive at Nabble.com.


-
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions