[ 
https://issues.apache.org/jira/browse/PDFBOX-2094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14009358#comment-14009358
 ] 

John Hewson edited comment on PDFBOX-2094 at 5/27/14 7:16 AM:
--------------------------------------------------------------

You don't have to use silentPrint() you can do your own custom printing using 
PDPageable.

{code}
PDDocument document = <whatever>
PrinterJob job = PrinterJob.getPrinterJob();
PrintRequestAttributeSet attrs = new HashPrintRequestAttributeSet();
job.setPageable(new PDPageable(document, job));
if (job.printDialog(attrs)) 
{
    job.print(attrs);
}
{code}


was (Author: jahewson):
You don't have to use silentPrint() you can do you own custom printing using 
PDPageable.

{code}
PDDocument document = <whatever>
PrinterJob job = PrinterJob.getPrinterJob();
PrintRequestAttributeSet attrs = new HashPrintRequestAttributeSet();
job.setPageable(new PDPageable(document, job));
if (job.printDialog(attrs)) 
{
    job.print(attrs);
}
{code}

> Could you please implement the silentPrint() to accept 
> printRequestAttributeSet as parameter. This is a helpfull functionality. 
> --------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-2094
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2094
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel
>    Affects Versions: 1.8.5
>            Reporter: senthuran
>            Priority: Minor
>
> The current implementation is not allow us to set the printer , paper 
> Attribute. Could you please implement the silentPrint() to  accept 
> printRequestAttributeSet as parameter. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to