Class StamperFactory

java.lang.Object
pro.verron.docxstamper.StamperFactory

public class StamperFactory extends Object
Main class of the docx-stamper library.

This class can be used to create "stampers" that will open .docx templates to create a .docx document filled with custom data at runtime.

Version:
1.6.6
Author:
Joseph Verron
  • Constructor Details

    • StamperFactory

      public StamperFactory()
  • Method Details

    • newDocxStamper

      public OpcStamper<org.docx4j.openpackaging.packages.WordprocessingMLPackage> newDocxStamper()
      Creates a new DocxStamper with the default configuration. Also adds the RemoveProofErrors and MergeSameStyleRuns preprocessors.
      Returns:
      a new DocxStamper
    • nopreprocessingDocxStamper

      public OpcStamper<org.docx4j.openpackaging.packages.WordprocessingMLPackage> nopreprocessingDocxStamper()
      Creates a new DocxStamper with the default configuration. Does not add any preprocessors.
      Returns:
      a new DocxStamper