Class MailMergerWithNext

java.lang.Object
org.docx4j.model.fields.merge.MailMerger
org.docx4j.model.fields.merge.MailMergerWithNext

public class MailMergerWithNext extends MailMerger
  • Constructor Details

    • MailMergerWithNext

      public MailMergerWithNext()
  • Method Details

    • performLabelMerge

      public static void performLabelMerge(WordprocessingMLPackage input, List<Map<DataFieldName,String>> data) throws Docx4JException
      Similar to performMerge method but better to merge labels template because of using the NEXT instruction to go to the next item. The contents of the input pkg are replaced with the results of the merge.
      Parameters:
      input - Document template
      data - List of multiple datamap
      Throws:
      Docx4JException