NONCONFIDENTIAL // EXTERNAL
Hi Tilman,

Thanks for your quick replies. PDF being printed from a web application. Before 
loading the doc, we build the PDF and feed the PDFContent into the stream. Not 
sure why it's behaving like that.

Best Regards,
Murugan.



-----Original Message-----
From: Tilman Hausherr <thaush...@t-online.de> 
Sent: Wednesday, July 08, 2020 12:05 PM
To: users@pdfbox.apache.org
Subject: [External] Re: Silent printing has a blank window left open

NONCONFIDENTIAL // EXTERNAL

PLEASE NOTE: This email is not from a Federal Reserve address.
Do not click on suspicious links. Do not give out personal or bank information 
to unknown senders.



Hi,

So am I (w10). I just tried your code and it works fine. Please try the command 
line app with PrintPDF -silentPrint . I tried that too, and no extra window.

Tilman


Am 08.07.2020 um 20:03 schrieb Subbiah, Murugan:
> NONCONFIDENTIAL // EXTERNAL
> I'm using the version 2.0.20 and working on Windows OS.
>
> -----Original Message-----
> From: Tilman Hausherr <thaush...@t-online.de>
> Sent: Wednesday, July 08, 2020 11:01 AM
> To: users@pdfbox.apache.org
> Subject: [External] Re: Silent printing has a blank window left open
>
> NONCONFIDENTIAL // EXTERNAL
>
> PLEASE NOTE: This email is not from a Federal Reserve address.
> Do not click on suspicious links. Do not give out personal or bank 
> information to unknown senders.
>
>
>
> Hi,
>
> What PDFBox version are you using, and on what operating system are you 
> working?
>
> Tilman
>
> Am 08.07.2020 um 19:51 schrieb Subbiah, Murugan:
>> NONCONFIDENTIAL // EXTERNAL
>> Hi PDFBox users,
>>
>> I'm trying to evaluate PDFBox for silent printing, everything works fine 
>> except it leaves an empty window open. Could anyone help me fix this issue?
>>
>> Below is my code
>>
>> try (PDDocument doc = PDDocument.load(bais);) {
>>                              PrinterJob job = PrinterJob.getPrinterJob();
>>                              job.setPageable(new PDFPageable(doc));
>>                              job.print();
>>                        } catch (IOException | PrinterException ioe) {
>>                              ioe.printStackTrace();
>>                        }
>>
>> Best Regards,
>> Murugan.
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
> For additional commands, e-mail: users-h...@pdfbox.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
> For additional commands, e-mail: users-h...@pdfbox.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org

Reply via email to