Class PowerpointStamper

java.lang.Object
pro.verron.officestamper.experimental.PowerpointStamper
All Implemented Interfaces:
OfficeStamper<org.docx4j.openpackaging.packages.PresentationMLPackage>

public class PowerpointStamper extends Object implements OfficeStamper<org.docx4j.openpackaging.packages.PresentationMLPackage>
The PowerpointStamper class implements the OfficeStamper interface to provide capability for stamping PowerPoint presentations with context and writing the result to an OutputStream.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new instance of the PowerpointStamper class.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.docx4j.openpackaging.packages.PresentationMLPackage
    stamp(org.docx4j.openpackaging.packages.PresentationMLPackage template, Object context)
    Stamps the given template with the given context and returns the resulting document.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PowerpointStamper

      public PowerpointStamper()
      Constructs a new instance of the PowerpointStamper class. This constructor initializes an instance of PowerpointStamper, which implements the OfficeStamper interface. The class provides functionality to apply variable-based stamping on PowerPoint templates and outputs the modified presentation.
  • Method Details

    • stamp

      public org.docx4j.openpackaging.packages.PresentationMLPackage stamp(org.docx4j.openpackaging.packages.PresentationMLPackage template, Object context) throws OfficeStamperException
      Description copied from interface: OfficeStamper
      Stamps the given template with the given context and returns the resulting document.
      Specified by:
      stamp in interface OfficeStamper<org.docx4j.openpackaging.packages.PresentationMLPackage>
      Parameters:
      template - The template to stamp.
      context - The context to use for stamping.
      Returns:
      The resulting document after stamping.
      Throws:
      OfficeStamperException