From dbea1ecc173c3fc7729bdf6306d041beae939cb1 Mon Sep 17 00:00:00 2001 From: Gerhard Muth Date: Thu, 12 Dec 2024 10:19:13 +0100 Subject: [PATCH] Add printer requirement for PDF printing --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f76ddd1c..833851d3 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,8 @@ implementation("de.gmuth:ipp-client:3.2") ### [IppPrinter](https://github.com/gmuth/ipp-client-kotlin/blob/master/src/main/kotlin/de/gmuth/ipp/client/IppPrinter.kt) and [IppJob](https://github.com/gmuth/ipp-client-kotlin/blob/master/src/main/kotlin/de/gmuth/ipp/client/IppJob.kt) +Printing a PDF file [requires the printer to support rendering PDF](https://github.com/gmuth/ipp-client-kotlin/issues/15). `ippPrinter.documentFormatSupported` contains a list of formats (pdls) supported by your printer. + ```kotlin // Initialize printer connection and log printer attributes val ippPrinter = IppPrinter(URI.create("ipp://colorjet.local/ipp/printer")) @@ -38,7 +40,7 @@ ippPrinter.log(logger) ippPrinter.markers.forEach { println(it) } println("black: ${ippPrinter.marker(BLACK).levelPercent()} %") -// Print file +// Submit PDF file to a printer that supports rendering PDF val file = File("A4-ten-pages.pdf") val job = ippPrinter.printJob( file,