I am trying to print images (`.png` format) using `MultipleImagePrintJob`.
val uriString = "file:///data/data/com.example/cache/tmp835661865.tmp/page0%202.png" val multipleImagePrintJob = MultipleImagePrintJob.Builder().uriStrings(uriString).build() val jobId = printJobsConnector.print(printer, multipleImagePrintJob)Note that I am testing on Star TSP100 printer which is supported by Clover. (on Clover Mobile)
After running this code, it says `Image sent to printer` However printer does not print. Just as a side note, printer works fine when I print the same with `ImagePrintJob` wherein instead of creating `uriString` I'm creating bitmap object.
So why is it that only `MultipleImagePrintJob` is not working?
Also, it would be great if printJobConnector handles error properly instead of just throwing generic errors. It would be really nice to know why print job failed (is it because of unsuitable size of the image? or is it because printer is out of paper? etc.)
Help me out. Let me know if I'm missing something.
Thanks!