Class PdfAttachmentUtil
java.lang.Object
org.frankframework.extensions.aspose.services.conv.impl.convertors.PdfAttachmentUtil
This class will combine seperate pdf files to a single pdf with attachments.
None existing files in a CisConversionResult will be skipped!
-
Constructor Summary
ConstructorsConstructorDescriptionPdfAttachmentUtil(File pdfResultFile) PdfAttachmentUtil(CisConversionResult cisConversionResultAttachment, File rootFile) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCreate a new pdf rootPdf based on the pdf in cisConversionResult and add all files specified in cisConversionResult.attachments to it.protected voidaddAttachmentToPdf(Message fileToAttach, String filename, String extension) static @NonNull MessagecombineFiles(@NonNull Message parent, @NonNull Message attachment, String fileNameToAttach, String charset)
-
Constructor Details
-
PdfAttachmentUtil
-
PdfAttachmentUtil
-
-
Method Details
-
addAttachmentToPdf
protected void addAttachmentToPdf(Message fileToAttach, String filename, String extension) throws IOException - Throws:
IOException
-
addAttachmentInSinglePdf
Create a new pdf rootPdf based on the pdf in cisConversionResult and add all files specified in cisConversionResult.attachments to it.Note: Nothing is changed to the given cisConversionResult object and its underlying files.
if there are no attachments null is returned otherwise rootPdf.- Throws:
IOException
-
combineFiles
public static @NonNull Message combineFiles(@NonNull Message parent, @NonNull Message attachment, String fileNameToAttach, String charset) throws IOException - Throws:
IOException
-