adding PDFBox wicket component

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

adding PDFBox wicket component

This post was updated on .

Does anyone know how I add pdfbox to a wicket component?

public class BPPdfGeneration extends Panel
    public BPPdfGeneration(String id) throws IOException, DocumentException, PrinterException
        PDDocument pdDocument;
        pdDocument = PDDocument.load(PDFGen.generatePDF());

//I assume that the pdDocument.print(); should be added to the html somehow such as:
//     add(new ?("pdf", pdDocument.print());

something like this link would help but it does not work: (the stream pdf)

Help would be greatly appreciated