Skip to content

Can print PDF to BROTHER DCP-L2540DW but not to BROTHER HL-L2305 #15

Closed
@squabtracker

Description

@squabtracker

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    document-format not supportedPrinter doesn't support the document format the user is sending

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions