You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have built a tray element programmatically and passed the same configuration to the CUPS API. However, I'm having trouble getting the lotsheet printer to recognize this tray element, which always picks up the paper from the default tray instead.
Attrunutes are below.
StringBuilder attributeString = new StringBuilder();
attributeString.append("fitplot:boolean:true");
attributeString.append("#");
attributeString.append("multiple-document-handling:keyword:separate-documents-collated-copies");
if (StringUtils.isNotBlank(trayAttribute)) {
attributeString.append("#");
attributeString.append("media:keyword:");
attributeString.append(trayAttribute);
}
Have built a tray element programmatically and passed the same configuration to the CUPS API. However, I'm having trouble getting the lotsheet printer to recognize this tray element, which always picks up the paper from the default tray instead.
Attrunutes are below.
StringBuilder attributeString = new StringBuilder();
attributeString.append("fitplot:boolean:true");
attributeString.append("#");
attributeString.append("multiple-document-handling:keyword:separate-documents-collated-copies");
if (StringUtils.isNotBlank(trayAttribute)) {
attributeString.append("#");
attributeString.append("media:keyword:");
attributeString.append(trayAttribute);
}
Also tried with below attributes.
//attributeMap.put("job-attributes", "media=A4 -o InputSlot=Tray2");
//attributeMap.put("job-attributes", "media=A4 -o InputSlot=Tray-2");
//attributeMap.put("job-attributes", "media=A4 -o InputSlot=Tray 2");
//attributeMap.put("job-attributes", "InputSlot=Tray 2");
Please let me know the correct approach.
The text was updated successfully, but these errors were encountered: