Class OfficeStampers

java.lang.Object
pro.verron.officestamper.preset.OfficeStampers
Direct Known Subclasses:
StamperFactory

public class OfficeStampers 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.

Since:
1.6.4
Version:
${version}
Author:
Joseph Verron
  • Constructor Details

    • OfficeStampers

      public OfficeStampers()
  • Method Details

    • docxStamper

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

      public static StreamStamper<org.docx4j.openpackaging.packages.WordprocessingMLPackage> docxStamper(OfficeStamperConfiguration config)
      Creates a new instance of the DocxStamper class with the specified OfficeStamperConfiguration.
      Parameters:
      config - the configuration for the docx stamper
      Returns:
      a new instance of the DocxStamper class