Interface IPdfPrinter


public interface IPdfPrinter
  • Method Details

    • processTemplateAndReturn

      static <Data, To> FunctionWithException<Data,To> processTemplateAndReturn(String resource, List<IPdfPart<Data>> parts, FunctionWithException<org.apache.pdfbox.pdmodel.PDDocument,To> consumer)
    • processTemplate

      static <Data> BiConsumerWithException<Data,ConsumerWithException<org.apache.pdfbox.pdmodel.PDDocument>> processTemplate(String resource, List<IPdfPart<Data>> parts)
    • print

      static <Data> void print(org.apache.pdfbox.pdmodel.PDDocument doc, Data data, List<IPdfPart<Data>> parts) throws Exception
      Throws:
      Exception
    • withStream

      static void withStream(org.apache.pdfbox.pdmodel.PDDocument doc, int pageNo, ConsumerWithException<org.apache.pdfbox.pdmodel.PDPageContentStream> consumer) throws Exception
      Throws:
      Exception
    • getPdPage

      static org.apache.pdfbox.pdmodel.PDPage getPdPage(org.apache.pdfbox.pdmodel.PDDocument doc, int pageNo)
    • printText

      <Data> void printText(org.apache.pdfbox.pdmodel.PDPageContentStream stream, Data data, PdfText<Data> text) throws Exception
      Throws:
      Exception
    • printImage

      <Data> void printImage(org.apache.pdfbox.pdmodel.PDPageContentStream stream, Data data, PdfImage<Data> image) throws Exception
      Throws:
      Exception
    • printBufferedImage

      <Data> void printBufferedImage(org.apache.pdfbox.pdmodel.PDPageContentStream stream, Data data, PdfBufferedImage<Data> image) throws Exception
      Throws:
      Exception
    • printJFreeChart

      <Data> void printJFreeChart(org.apache.pdfbox.pdmodel.PDPageContentStream stream, Data data, PdfJFreeChart<Data> pdfJFreeChart) throws Exception
      Throws:
      Exception