Java Printing to specific page size using label printer

后端 未结 3 893
猫巷女王i
猫巷女王i 2021-02-06 18:29

I am trying to use a label printer (EPSON TM-T88V to be specific), to spit out PNG images.

I can get it to print fine, except when I am printing an image dimensions (220

3条回答
  •  北荒
    北荒 (楼主)
    2021-02-06 18:58

    Add a MediaPrintableArea:

    das.add(new MediaPrintableArea(0.05, 0.05, 0.05, 0.05, MediaPrintableArea.INCH));
    

提交回复
热议问题