Package pro.verron.docxstamper
Class StamperFactory
java.lang.Object
pro.verron.docxstamper.StamperFactory
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:
- ${version}
- Author:
- Joseph Verron
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOpcStamper<org.docx4j.openpackaging.packages.WordprocessingMLPackage> Creates a new DocxStamper with the default configuration.OpcStamper<org.docx4j.openpackaging.packages.WordprocessingMLPackage> Creates a new DocxStamper with the default configuration.
-
Constructor Details
-
StamperFactory
public StamperFactory()
-
-
Method Details
-
newDocxStamper
Creates a new DocxStamper with the default configuration. Also adds theRemoveProofErrorsandMergeSameStyleRunspreprocessors.- 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
-