java.lang.Object
org.frankframework.extensions.aspose.services.conv.impl.convertors.PdfAttachmentUtil

public class PdfAttachmentUtil extends Object
This class will combine seperate pdf files to a single pdf with attachments. None existing files in a CisConversionResult will be skipped!
  • Constructor Details

    • PdfAttachmentUtil

      public PdfAttachmentUtil(CisConversionResult cisConversionResultAttachment, File rootFile)
    • PdfAttachmentUtil

      public PdfAttachmentUtil(File pdfResultFile)
  • Method Details

    • addAttachmentToPdf

      protected void addAttachmentToPdf(Message fileToAttach, String filename, String extension) throws IOException
      Throws:
      IOException
    • addAttachmentInSinglePdf

      protected void addAttachmentInSinglePdf() throws IOException
      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