gmuth / ipp-client-kotlin

A client implementation of the ipp protocol written in kotlin
MIT License
75 stars 10 forks source link

'application/pdf' is not supported #2

Closed fromdestiny closed 3 years ago

fromdestiny commented 3 years ago

First of all Thank you for sharing good library!!

I success to print image using this library. but When I try to print pdf, I failed.

According to log, my print seems not supported 'application/pdf'.

"document-format-supported (1setOf mimeMediaType) = application/octet-stream,image/pwg-raster,image/urf,image/jpeg"

Is there anyway to print pdf using ipp?

gmuth commented 3 years ago

Unfortunately this library does not support rendering PDF documents. You could try JIPP jrender which uses Apache PDFBox to render PDF as PWG.

fromdestiny commented 3 years ago

Thank you for reply.

I use JIPP jrender to convert pdf to pwg. Then I success to print by this library!

gmuth commented 2 weeks ago

Simon Scholz has created a tutorial how to render PWG to PDF and submit the stream to a printer: https://simonscholz.dev/tutorials/ipp-print-java-kotlin