- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Can print PDF to BROTHER DCP-L2540DW but not to BROTHER HL-L2305 #15
Comments
Successful physical printing depends on various things. It's very important to send data the printer understands. If you send a document in a pdl/format the printer does not support you get either errors or a behavior similar to what you described. Your code assumes the printer just knows what you send. I recommend to set the documentFormat explicitly.
|
I am trying to print a pdf that was generated and saved prior to this print step. I have tried passing in application/pdf into the job but that didn't seem to make any difference on either printer.
Running
The rest of the output is almost identical between the two printers. Differences between them shown below. Working
And non working
Should I be sending the document as something other than pdf? |
The printer does not announce support for PDF. As per spec the printer should reject printjobs with unsupported document formats. Unfortunately it's common practice for implementors to respond "Ok" even when requests are not ok. Most (but not all) AirPrint printers support rendering a vector format like pdf or PCLm. However your printer is limited to URF (required by AirPrint) which is not publicly documented. pwg-raster should be a good candidate to look into. |
I am printing via a Kotlin app using the below code.
The L2540DW prints just fine. I have tried adding in the port like
ipp://$printerAddress:631/ipp/print
and various other alternatives with and without /ipp/print and every time the L2540DW prints. But the HL-L2305 just starts kicking out blank page after blank page and never stops (I let it go to about 10 pages and then pulled the tray). I updated firmware on the printer but that didnt change anything. I verified the IPP is enabled via the printer web console but nothing seems to work. What else can I try?The text was updated successfully, but these errors were encountered: