Re: pdf encryption

Eugene,
 
Thanks for your reply.

FOP Version 0.20.5 was used and embedded in Java application, run on Oracle9ias as J2EE Container as Webserver, and I used following:

rendererOptions.put("userPassword", "mypassword");

rendererOptions.put (“allowCopyContent", "FALSE");

rendererOptions.put (“allowEditContent", "FALSE");

rendererOptions.put (“allowPrint", "FALSE");

driver.getRenderer().setOptions(rendererOptions);

driver.setOutputStream(...

 I put the jce-jdk13-122.jar in Classpath and bcprov-jdk13-122.jar in jdk\jre\ext

Added a line in java.Security file: Security.provider.6=org.bouncycastle.jce.provider.BouncyCastleProvider  

The problem is when I rendering the pdf file, it does not ask for the password to view the pdf, and no error message at all, I doubt it really enable the encryption or not. It does not show any difference before and after adding security.

Thanks for your help and time!

Weihua




Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.

Received on Monday, 22 March 2004 12:14:35 UTC