Jump to content

Securing a PDF


cedwa

Recommended Posts

Does anybody know of a way to secure a PDF so that it is not editable in Acrobat? We are using JasperReports to generate "official" transcript-type documents and want to limit people's ability to modify a PDF after it's been dynamically generated. I had no luck with Google or the forum search.

 

Any links would be helpful as well.

 

Thanks in advance

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hy brow...

 

Take a look on the generates parameters that you can set to your PDF generator.

 

Take a look in this code

 

Code:

exporter = new JRPdfExporter();
// @see com.lowagie.text.pdf.PdfWriter;
exporter.setParameter(JRPdfExporterParameter.PERMISSIONS, new Integer(PdfWriter.AllowCopy | PdfWriter.AllowPrinting));

 

I'm not needing that you want but in this JRPdfExporterParameter.PERMISSIONS you can set!!

 

Take a deep look in this com.lowagie.text.pdf.PdfWriter

 

Good luck

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...