[
https://issues.apache.org/jira/browse/PDFBOX-2094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
senthuran reopened PDFBOX-2094:
-------------------------------
silentPrint now accepts PrintRequestAttributeSet but its not working. Bug is in
private boolean print(PrinterJob job, PrintRequestAttributeSet attributes,
boolean isSilent) method which is not considering the PrintRequestAttributeSet
for silentPrint scenario. Please find the modified condition below.
if (isSilent)
{
if (attributes == null)
{
job.print();
return true;
}
else
{
job.print(attributes);
return true;
}
}
else
{
if (attributes == null && job.printDialog())
{
job.print();
return true;
}
else if (job.printDialog(attributes))
{
job.print();
return true;
}
}
> Add PrintRequestAttributeSet parameter to silentPrint()
> -------------------------------------------------------
>
> Key: PDFBOX-2094
> URL: https://issues.apache.org/jira/browse/PDFBOX-2094
> Project: PDFBox
> Issue Type: Improvement
> Components: PDModel
> Affects Versions: 2.0.0
> Reporter: senthuran
> Assignee: John Hewson
> Priority: Minor
> Fix For: 2.0.0
>
>
> The current implementation is not allow us to set the printer , paper
> Attribute. Could you please implement the silentPrint() to accept
> printRequestAttributeSet as parameter. affected version from
> pdfbox-app-2.0.0-20140506.050443-277jar to
> pdfbox-app-2.0.0-20140506.050443-301jar .
--
This message was sent by Atlassian JIRA
(v6.2#6252)