com.crionics.jpdf
Class EncryptionModule

java.lang.Object
  extended by PdfModule
      extended by com.crionics.jpdf.AbstractModule
          extended by com.crionics.jpdf.EncryptionModule

public final class EncryptionModule
extends AbstractModule

This Object is used to crypt and decrypt documents and change document permissions


Field Summary
 
Fields inherited from class com.crionics.jpdf.AbstractModule
MOD_CREATOR, MOD_DESCRIPTION, MOD_ENCRYPTION, MOD_MERGER, MOD_PRINTER, MOD_SECURITY, MOD_SIGNER, MOD_TEMPLATE
 
Method Summary
 void processTo(java.io.File file, Preferences prefs)
          WARNING: This method can only be used if you have the Template or the Merger Module Converts the current document using the settings defined in the preferences and saves it to 'file'.
 void processTo(java.io.OutputStream os, Preferences prefs)
          WARNING: This method can only be used if you have the Template or the Merger Module Converts the current document using the settings defined in the preferences and saves to the given outputstream.
 void processTo(java.lang.String file, Preferences prefs)
          WARNING: This method can only be used if you have the Template or the Merger Module Converts the current document using the settings defined in the preferences and saves it to 'file'.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

processTo

public void processTo(java.io.File file,
                      Preferences prefs)
               throws PdfException,
                      java.io.IOException
WARNING: This method can only be used if you have the Template or the Merger Module Converts the current document using the settings defined in the preferences and saves it to 'file'. Use this method to change document permissions - passwords..etc.

Parameters:
file - the file to save the converted document to
prefs - a set of paramters (passwords, permissions)
Throws:
PdfException - pdf parsing issue
java.io.IOException - io issue

processTo

public void processTo(java.io.OutputStream os,
                      Preferences prefs)
               throws java.io.IOException,
                      PdfException
WARNING: This method can only be used if you have the Template or the Merger Module Converts the current document using the settings defined in the preferences and saves to the given outputstream. Behind the scene, this method uses a templorary file to perform the encryption process. resources are cleaned up once the process is complete. Use this method to change document permissions - passwords..etc.

Parameters:
os - the output stream to save the converted document to
prefs - a set of paramters (passwords, permissions)
Throws:
PdfException - pdf parsing issue
java.io.IOException - io issue

processTo

public void processTo(java.lang.String file,
                      Preferences prefs)
               throws PdfException,
                      java.io.IOException
WARNING: This method can only be used if you have the Template or the Merger Module Converts the current document using the settings defined in the preferences and saves it to 'file'. Use this method to change document permissions - passwords..etc.

Parameters:
file - the file to save the converted document to
prefs - a set of paramters (passwords, permissions)
Throws:
PdfException - pdf parsing issue
java.io.IOException - io issue


Copyright © 1999-2007 Crionics. All Rights Reserved.