Closed
Description
I am printing via a Kotlin app using the below code.
HttpURLConnectionClient.log.logLevel = Logging.LogLevel.TRACE
val printer = IppPrinter(URI.create("ipp://$printerAddress/ipp/print"), httpConfig = Http.Config(debugLogging = true))
printer.attributes.logDetails()
// create job and send document
val job = printer.createJob(
jobName(file.name),
IppPrintQuality.Normal,
IppColorMode.Monochrome,
)
job.sendDocument(FileInputStream(file))
job.logDetails()
job.waitForTermination()
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?