Interface SignatureContent

All Known Implementing Classes:
ImageSignature, TextSignature

public sealed interface SignatureContent permits TextSignature, ImageSignature
Immutable visual signature content accepted by LetterBuilder.signature(SignatureContent...). Create text with TextSignature.of(String) and PNG/JPEG/static SVG artwork with ImageSignature.of(byte[]). The letter builder stacks parts in argument order; placement and reserved height are configured on the builder separately.
  • Method Summary

    Modifier and Type
    Method
    Description
    Exposes the ordered immutable blocks represented by this signature part.
  • Method Details

    • blocks

      List<Block> blocks()
      Exposes the ordered immutable blocks represented by this signature part. Text parts produce paragraphs; image parts produce one fitted image block.
      Returns:
      immutable signature blocks, in display order