Annotation Interface PrintTemplate


@Retention(RUNTIME) @Target(TYPE) @Repeatable(PrintTemplates.class) public @interface PrintTemplate
Declares a print template attached to a document or catalog class. Multiple templates can be declared on the same target (e.g. summary, detailed, legal).
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Stable identifier used in URLs and UI actions, e.g.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Render format.
    Human-readable label for the print action button.
    int
    Order in UI lists when multiple templates are defined.
    Template path.
  • Element Details

    • name

      String name
      Stable identifier used in URLs and UI actions, e.g. "bill", "guardia-civil".
    • label

      String label
      Human-readable label for the print action button.
      Default:
      ""
    • template

      String template
      Template path. Resolved by Thymeleaf's resource loader. Default convention: classpath:/print/{name}.html.
      Default:
      ""
    • format

      PrintFormat format
      Render format.
      Default:
      PDF
    • order

      int order
      Order in UI lists when multiple templates are defined.
      Default:
      0