-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Print to a media size not specified #58
Comments
@leandrosilva I'm not sure on the specific error message you're getting from the library, tag 16 decimal is the unsupported attribute value, which gets returned when you send a value to the printer it doesn't support for a particular attribute (in this case, media-size). @williamkapke I'd just represent any out-of-band values as JSON strings ("unsupported", "default", "unknown", etc.) - all out-of-band syntaxes/tags are used as alternate values for attributes. That said, given the media-supported and media-size-supported values you are getting, the printer is saying the largest custom size media it can print to is 215.9mm (8.5in) wide and 1320.8mm (52in) long, while the largest standard size is 320x432mm. Clearly this printer's IPP implementation isn't returning the true limits for width... You could try specifying the media-size with an x-dimension of 320 and a y-dimension of 600 (portrait dimensions, which is what IPP wants for sheet-fed media) - if that works for you, great! If not, you'll need to contact Lexmark for some support... |
I'm not sure whether it wasn't clear but I'm not saying that there is a problem on the ipp lib. It's instead a call for help to workaround the fact that the printer is hindding a supported media size or something, since I can print the given media size from Adobe Reader or Chrome, which uses the installed printer drive but cannot thru ipp protocol. I thought maybe youo guys could have any idea on how to work around that with ipp protol. Maybe there is a way to do what looks like the native driver is doing.
Yeah, I have already tried it but with no success. And I got in touch with Lexmark. Thanks. |
@leandrosilva If you are sending a PDF to the printer you can usually omit the media size from the request and the Right Thing ™ will happen. Something to try at least... |
@michaelrsweet Oh yeah, I did it. What ends up happening is that the printer prints it to what seems to be 320x450mm, so it is partially cut. I've been using this ipp lib with very high success and it is just this new Lexmark printer that has given me a bad time. And I'm afraid Lexmark's technicians can't help me on that. |
As a follow up, I was talking to a Lexmark's solution architect and he told me that I can change printer settings by send it (via IPP even) a PJL file with those given commands. Attached are those commands for that matter. |
Hi guys, I'm working with a Lexmark MS911de printer, which provides me these media-supported and media-size-supported options below.
Problem is, I have to print to a 320x600mm, which is not listed below. It is what we call in Brazil "Super A3" and it is very common in visual merchandising at supermarkets and the likes.
I can print a 320x600mm PDF to this printer from Adobe Reader or Google Chrome with no problem using the installed printer driver (as for troubleshooting purpose). But I cannot thru ipp lib. It prints out a "The spec is not clear on how to handle tag 16: media-size=undefined." message, finishes the request with status code "successful-ok-ignored-or-substituted-attributes", and prints and error message to the actual paper.
The request is like:
And the response is what follows:
Any idea on how I can manage to print this 320x600mm PDF thru ipp lib?
Many many thanks, guys.
The text was updated successfully, but these errors were encountered: