java.lang.Object
pro.verron.officestamper.test.Stringifier

public class Stringifier extends Object

Stringifier class.

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

    • Stringifier

      public Stringifier(Supplier<org.docx4j.openpackaging.packages.WordprocessingMLPackage> documentSupplier)

      Constructor for Stringifier.

      Since:
      1.6.6
  • Method Details

    • stringifyPowerpoint

      public static String stringifyPowerpoint(org.docx4j.openpackaging.packages.PresentationMLPackage presentation)
    • stringifyExcel

      public static String stringifyExcel(org.docx4j.openpackaging.packages.SpreadsheetMLPackage presentation)
    • findComment

      public static Optional<org.docx4j.wml.Comments.Comment> findComment(org.docx4j.openpackaging.packages.WordprocessingMLPackage document, BigInteger id) throws org.docx4j.openpackaging.exceptions.Docx4JException
      Finds a comment with the given ID in the specified WordprocessingMLPackage document.
      Parameters:
      document - the WordprocessingMLPackage document to search for the comment
      id - the ID of the comment to find
      Returns:
      an Optional containing the Comment if found, or an empty Optional if not found
      Throws:
      org.docx4j.openpackaging.exceptions.Docx4JException - if an error occurs while searching for the comment
    • stringify

      public String stringify(Object o)

      stringify.

      Parameters:
      o - a Object object
      Returns:
      a String object
      Since:
      1.6.6