org.allcolor.yahp.cl.converter
Class CDocumentReconstructor
java.lang.Object
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:
- 1.2.20b
- Author:
- Quentin Anciaux
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,
IHtmlToPdfTransformer.PageSize[] size,
java.util.List hf)
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 |
CDocumentReconstructor
public CDocumentReconstructor()
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
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,
IHtmlToPdfTransformer.PageSize[] size,
java.util.List hf)
throws IHtmlToPdfTransformer.CConvertException
- construct a pdf document from pdf parts.
- Parameters:
files
- list containing the pdf to assembleproperties
- converter propertiesfout
- outputstream to write the new pdfbase_url
- base url of the documentproducer
- producer of the pdf
- Throws:
IHtmlToPdfTransformer.CConvertException
- if an error occured while reconstruct.