java.lang.Object
pro.verron.officestamper.preset.OfficeStampers
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic StreamStamper
<org.docx4j.openpackaging.packages.WordprocessingMLPackage> Creates a new DocxStamper with the default configuration.static StreamStamper
<org.docx4j.openpackaging.packages.WordprocessingMLPackage> Creates a new instance of theDocxStamper
class with the specifiedOfficeStamperConfiguration
.
-
Method Details
-
docxStamper
public static StreamStamper<org.docx4j.openpackaging.packages.WordprocessingMLPackage> docxStamper()Creates a new DocxStamper with the default configuration. Also adds thePreprocessors.removeLanguageProof()
andPreprocessors.mergeSimilarRuns()
preprocessors.- Returns:
- a new DocxStamper
-
docxStamper
public static StreamStamper<org.docx4j.openpackaging.packages.WordprocessingMLPackage> docxStamper(OfficeStamperConfiguration config) Creates a new instance of theDocxStamper
class with the specifiedOfficeStamperConfiguration
.- Parameters:
config
- the configuration for the docx stamper- Returns:
- a new instance of the
DocxStamper
class
-