Interface PrintPdfButton.PdfWriterCallback

All Superinterfaces:
Serializable
Enclosing class:
PrintPdfButton

public static interface PrintPdfButton.PdfWriterCallback extends Serializable
Callback that writes a PDF document to an output stream. Typically implemented with a PDF library such as Apache PDFBox, OpenPDF or iText.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    writePdf(OutputStream outputStream)
    Writes the PDF document to the given output stream.
  • Method Details

    • writePdf

      void writePdf(OutputStream outputStream) throws IOException
      Writes the PDF document to the given output stream.
      Parameters:
      outputStream - the stream to write PDF bytes to
      Throws:
      IOException - if writing fails