Class OfficeStampers
java.lang.Object
pro.verron.officestamper.preset.OfficeStampers
OfficeStampers is a utility class that provides factory methods for creating document stampers for Office
documents. This class offers convenient methods to create stampers for DOCX documents with various configurations.
The stampers created by this utility can apply various preprocessing steps to enhance the document processing capabilities.
-
Method Summary
Modifier and TypeMethodDescriptionstatic OfficeStamper<org.docx4j.openpackaging.packages.WordprocessingMLPackage> docxPackageStamper(OfficeStamperConfiguration configuration) Creates anOfficeStamperinstance for processingWordprocessingMLPackagedocuments with the specified configuration.static StreamStamper<org.docx4j.openpackaging.packages.WordprocessingMLPackage> Creates a new instance of aStreamStamperfor handlingWordprocessingMLPackagedocuments with a default full configuration.static StreamStamper<org.docx4j.openpackaging.packages.WordprocessingMLPackage> docxStamper(OfficeStamperConfiguration configuration) Creates aStreamStamperinstance that processesWordprocessingMLPackage(DOCX) documents by applying stamping with the given configuration.
-
Method Details
-
docxStamper
public static StreamStamper<org.docx4j.openpackaging.packages.WordprocessingMLPackage> docxStamper()Creates a new instance of aStreamStamperfor handlingWordprocessingMLPackagedocuments with a default full configuration.- Returns:
- a
StreamStamperinstance for stampingWordprocessingMLPackagedocuments - See Also:
-
docxStamper
public static StreamStamper<org.docx4j.openpackaging.packages.WordprocessingMLPackage> docxStamper(OfficeStamperConfiguration configuration) Creates a
StreamStamperinstance that processesWordprocessingMLPackage(DOCX) documents by applying stamping with the given configuration.The returned stamper is designed to handle the transformation of DOCX templates using provided context data.
- Parameters:
configuration- an instance ofOfficeStamperConfigurationthat defines the behavior and preprocessing steps of the stamper- Returns:
- a
StreamStamperofWordprocessingMLPackageconfigured to process DOCX documents
-
docxPackageStamper
public static OfficeStamper<org.docx4j.openpackaging.packages.WordprocessingMLPackage> docxPackageStamper(OfficeStamperConfiguration configuration) Creates anOfficeStamperinstance for processingWordprocessingMLPackagedocuments with the specified configuration.- Parameters:
configuration- an instance ofOfficeStamperConfigurationthat defines the behavior of the stamper- Returns:
- an
OfficeStamperforWordprocessingMLPackageconfigured to process DOCX documents
-