public class PdfAttachmentUtil extends Object
Constructor and Description |
---|
PdfAttachmentUtil(CisConversionResult cisConversionResultAttachment,
File rootFile) |
PdfAttachmentUtil(File pdfResultFile) |
Modifier and Type | Method and Description |
---|---|
protected void |
addAttachmentInSinglePdf()
Create a new pdf rootPdf based on the pdf in cisConversionResult and add all
files specified in cisConversionResult.attachments to it.
|
protected void |
addAttachmentToPdf(Message fileToAttach,
String filename,
String extension) |
static Message |
combineFiles(Message parent,
Message attachment,
String fileNameToAttach,
String charset) |
public PdfAttachmentUtil(CisConversionResult cisConversionResultAttachment, File rootFile)
public PdfAttachmentUtil(File pdfResultFile)
protected void addAttachmentToPdf(Message fileToAttach, String filename, String extension) throws IOException
IOException
protected void addAttachmentInSinglePdf() throws IOException
Note: Nothing is changed to the given cisConversionResult object and its underlying files.
if there are no attachments null is returned otherwise rootPdf.IOException
public static Message combineFiles(Message parent, Message attachment, String fileNameToAttach, String charset) throws IOException
IOException
Copyright © 2023 Frank!Framework. All rights reserved.