Hello and thanks.
I am using wicket to "serve" the pdf to the printer. My code is like this:
//component
public class BPPdfGeneration extends Panel
{
public BPPdfGeneration(String id) throws IOException, DocumentException,
PrinterException
{
super(id);
PDDocument pdDocument;
pdDocument = PDDocument.load(PDFGen.generatePDF());
pdDocument.print();
//I assume that the pdDocument.print(); should be added to the html somehow
such as:
// add(new ?("pdf", pdDocument.print());
}
}
Help would be greatly appreciated
> Subject: RE: pdDocument.print(); prints to server not browser
> Date: Mon, 18 Jul 2011 09:21:20 -0400
> From: [email protected]
> To: [email protected]
>
> If your document is on the server it sounds like it does what it's
> supposed to.
> How is your server talking to your client?
> Try streaming the pdf to the client first?
>
>
> -----Original Message-----
> From: stephen smith [mailto:[email protected]]
> Sent: Friday, July 15, 2011 5:51 PM
> To: [email protected]
> Subject: pdDocument.print(); prints to server not browser
>
>
> Hello,
>
> When we use:
> pdDocument.print();
> it actually opens up the print dialog box on the server, not the client.
>
> Has anyone seen this before?
>
> Thanks.