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 void
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)
-
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
@Nonnull public static Message combineFiles(@Nonnull Message parent, @Nonnull Message attachment, String fileNameToAttach, String charset) throws IOException - Throws:
IOException
-