gmuth / ipp-client-kotlin

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

Canon Selphy Printer Image Size #30

Open janjanmedinaaa opened 5 hours ago

janjanmedinaaa commented 5 hours ago

I got it connected and working on my Canon Selphy Printer CP1500 but it doesn't print full size. I tried getting the ippPrinter.mediaSizeSupported and got [10000x14800, 8900x11900, 5400x8600, 5300..10200x8500..15300] which I think is correct. I'm just not sure how to print it on the correct size.

val job = ippPrinter.printJob(
    imageFile,
    jobName(imageFile.name),
    DocumentFormat.JPEG,
    printerResolution(300, IppResolution.Unit.DPI),
    PrintQuality.High,
    MediaSize(10000, 14800)
)
janjanmedinaaa commented 4 hours ago

Okay I got the Media Supported List [jpn_hagaki_100x148mm, om_dsc-photo_89x119mm, om_card_54x86mm, custom_min_53x85mm, custom_max_102x153mm] and tried setting it on the print job but it's still not working.

ippPrinter.printJob(
    imageFile,
    jobName(imageFile.name),
    DocumentFormat.JPEG,
    printerResolution(300, IppResolution.Unit.DPI),
    PrintQuality.High,
    Media("jpn_hagaki_100x148mm")
)