org.allcolor.yahp.cl.converter
Class CDocumentReconstructor

java.lang.Object
  extended by org.allcolor.yahp.cl.converter.CDocumentReconstructor

public class CDocumentReconstructor
extends java.lang.Object

Use iText to construct a complete pdf document from differents pdf parts. Apply configured security policies on the resulting pdf.

Version:
0.94
Author:
Quentin Anciaux

Constructor Summary
CDocumentReconstructor()
           
 
Method Summary
private static int getSecurityFlags(java.util.Map properties)
          return the itext security flags for encryption
static void reconstruct(java.util.List files, java.util.Map properties, java.io.OutputStream fout, java.lang.String base_url, java.lang.String producer)
          construct a pdf document from pdf parts.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDocumentReconstructor

public CDocumentReconstructor()
Method Detail

reconstruct

public static void reconstruct(java.util.List files,
                               java.util.Map properties,
                               java.io.OutputStream fout,
                               java.lang.String base_url,
                               java.lang.String producer)
                        throws IHtmlToPdfTransformer.CConvertException
construct a pdf document from pdf parts.

Parameters:
files - list containing the pdf to assemble
properties - converter properties
fout - outputstream to write the new pdf
base_url - base url of the document
producer - producer of the pdf
Throws:
IHtmlToPdfTransformer.CConvertException - if an error occured while reconstruct.

getSecurityFlags

private static final int getSecurityFlags(java.util.Map properties)
return the itext security flags for encryption

Parameters:
properties - the converter properties
Returns:
the itext security flags