# Processing/Java code to print directly to Thermal Printer!

**URL:** <https://forum.clockworkpi.com/t/processing-java-code-to-print-directly-to-thermal-printer/9926>\
**Category:** DevTerm\
**Created:** [April 20, 2023, 11:14am UTC](https://forum.clockworkpi.com/t/processing-java-code-to-print-directly-to-thermal-printer/9926 "2023-04-20T11:14:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![proxyjesse](https://avatars.discourse-cdn.com/v4/letter/p/4da419/32.png) [@proxyjesse](https://forum.clockworkpi.com/u/proxyjesse)\
**Post date:** [April 20, 2023, 11:14am UTC](https://forum.clockworkpi.com/t/processing-java-code-to-print-directly-to-thermal-printer/9926/1 "2023-04-20T11:14:40Z")

</div>

Hi! So one major reason for me getting the DevTerm was to get back into / catch up with creative coding, so I’ve started using Processing again; and am experimenting with using it in combination with the Thermal Printer for rapid ‘data visualizations’ in design/ideation/workshop scenarios…and stumbled across old code that I used at design school to send PGraphics/PImage objects to a system default printer WITHOUT intermediate printer dialogue.

So find my code for that **[here](https://github.com/entopticmedia/devprint)**

And see attached image of using it in a Processing project—really chuffed with this.

 ![IMG_7776 Large](https://canada1.discourse-cdn.com/flex029/uploads/clockworkpi/original/2X/1/18556f18de107483d1361d0b04e000c50cb3231d.jpeg)

---

<div class="post-metadata">

**Author:** ![philosiraptor](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/philosiraptor/32/11414_2.png) [@philosiraptor](https://forum.clockworkpi.com/u/philosiraptor)\
**Post date:** [April 20, 2023, 9:02pm UTC](https://forum.clockworkpi.com/t/processing-java-code-to-print-directly-to-thermal-printer/9926/2 "2023-04-20T21:02:02Z")

</div>

neat! ya the fact its available via CUPS is pretty fun, I wanna look at different rasterization techniques that this printer might excel with

---

<div class="post-metadata">

**Author:** ![proxyjesse](https://avatars.discourse-cdn.com/v4/letter/p/4da419/32.png) [@proxyjesse](https://forum.clockworkpi.com/u/proxyjesse)\
**Post date:** [April 21, 2023, 5:07pm UTC](https://forum.clockworkpi.com/t/processing-java-code-to-print-directly-to-thermal-printer/9926/3 "2023-04-21T17:07:29Z")

</div>

Cheers, the dithering algorithm in the Processing example seems to work well for images, added a variable to control the offset value for more or less “grain” as well. Text is still an issue, may approach it through a custom JPTextpane styleset…

By the way, really looking forward to try the Field Shell out, plus the RTL mount. Do you have any recommendations for lighweight resources to get started with RTL-DSR stuff?

---

<div class="post-metadata">

**Author:** ![philosiraptor](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/philosiraptor/32/11414_2.png) [@philosiraptor](https://forum.clockworkpi.com/u/philosiraptor)\
**Post date:** [April 27, 2023, 5:00pm UTC](https://forum.clockworkpi.com/t/processing-java-code-to-print-directly-to-thermal-printer/9926/4 "2023-04-27T17:00:22Z")

</div>

none of them are particularly well suited to the devterm, but people seem to like sdr++

---

<div class="post-metadata">

**Author:** ![proxyjesse](https://avatars.discourse-cdn.com/v4/letter/p/4da419/32.png) [@proxyjesse](https://forum.clockworkpi.com/u/proxyjesse)\
**Post date:** [May 24, 2023, 9:50am UTC](https://forum.clockworkpi.com/t/processing-java-code-to-print-directly-to-thermal-printer/9926/5 "2023-05-24T09:50:18Z")

</div>

thanks! would love to build a ‘friendly’ sniffer based on sth like tempest but wrapped in processing visualizations/devprint features…
