<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-build-a-f-king-printer-ptkesw5pr" -->

---
title: How to build a f**king printer | daily.dev
description: A developer turns an e-ink reader (Xteink X3) into a network printer by implementing the Internet Printing Protocol (IPP) directly on the device's ESP32-C3...
canonical: https://daily.dev/posts/how-to-build-a-f-king-printer-ptkesw5pr
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to build a f**king printer | daily.dev
og:description: A developer turns an e-ink reader (Xteink X3) into a network printer by implementing the Internet Printing Protocol (IPP) directly on the device's ESP32-C3...
og:url: https://daily.dev/posts/how-to-build-a-f-king-printer-ptkesw5pr
og:image: https://api.daily.dev/og/posts/PTKeSw5pr.png
og:image:alt: How to build a f**king printer
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to build a f**king printer

**[Lobsters](https://daily.dev/sources/lobsters)** · 5 min read · 0 upvotes · 0 comments

## Summary

A developer turns an e-ink reader (Xteink X3) into a network printer by implementing the Internet Printing Protocol (IPP) directly on the device's ESP32-C3 firmware. The writeup covers advertising a Bonjour/mDNS printer service for driverless macOS discovery, and solving a severe RAM constraint (only 6.8 KB of heap free after Wi-Fi) by streaming decoded page rows directly into the display's existing framebuffer instead of allocating a second full-page buffer, cutting image-buffer RAM usage from ~113 KB to ~62 KB. The result: printing a manga page from macOS Preview straight to the e-ink screen in about a second, with saved printouts browsable on the SD card.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://nishantjosh.dev/blogs/how-to-build-a-fking-printer>

## Questions this post answers

### How can I implement IPP printer discovery on macOS so a device shows up in the Print dialog without installing a driver?

Driverless discovery on macOS requires advertising an mDNS/Bonjour service under the type _ipp._tcp and adding the _universal subtype, since macOS looks for that subtype to enable driverless printing. On ESP32 hardware, this subtype registration required calling the ESP-IDF mDNS API directly, because the Arduino wrapper library did not expose that functionality.

_Developers wiring up custom IPP printers can find implementation notes like this through daily.dev._

### How much RAM does an ESP32-C3 have available and how can I fit an 8MB print job into it?

An ESP32-C3 has 400 KB of RAM total, with 16 KB reserved for cache, leaving only 6.8 KB of free heap after running Wi-Fi and a printer server. A 300 dpi Letter page is about 8.4 MB uncompressed, so the fix was streaming decoded, dithered rows directly into the display's existing screen-image buffer instead of allocating a second full-page buffer, cutting image-buffer RAM from about 113 KB to about 62 KB out of the chip's 400 KB.

_Anyone squeezing large data through tiny microcontroller RAM budgets can track techniques like this via daily.dev._

## Community take

How the wider developer community reacted, aggregated from 2 discussions and 140 comments across hackernews, lobsters (as of 2026-09-09).

**TL;DR:** The hack of turning an e-ink reader into a driverless network printer is widely praised as clever and delightful, sparking a long tangent about the broader sorry state of printing support and IPP/raster technical details, plus debate over why the device doesn't just render PDFs natively.

**Sentiment:** 65% positive · 30% mixed · 5% skeptical

**The case for**

- Seen as a clever, elegant use of standard OS print dialogs and mDNS discovery to get content onto an e-ink device without extra apps.
- Several people share or want similar projects (recipe printing, Home Assistant displays, Remarkable IPP servers, photo frames), showing real practical appeal.
- Detailed technical suggestions (1-bit/bi-level raster, custom media sizes, dithering options) show genuine engineering interest in improving the approach.

**The pushback**

- Some question why the device doesn't just render PDFs directly given it reportedly has native PDF support, sparking disagreement.
- A few feel the piece is misleadingly titled since it doesn't cover building an actual physical printer.
- Concerns raised about whether 1-bit/bi-level raster modes are well supported across printing stacks, given inconsistent spec conformance.

**By community**

- hackernews (positive): Broadly enthusiastic and admiring of the hack, with a long, good-natured tangent about the miserable state of printing software and detailed IPP/raster technical suggestions.
- lobsters (positive): Short, warm reception with people sharing similar ESP32/e-ink streaming projects and expressing interest in building their own IPP servers.

**Hottest debate:** Whether the device should have just rendered PDFs natively instead of emulating a printer, given conflicting claims about its RAM and PDF support.

**Open questions**

- Would using 1-bit/bi-level raster and custom media sizes meaningfully improve memory usage and image quality, and is that mode reliably supported across OSes?
- Could this approach be extended to multi-page PDFs saved directly on the device, or to other e-ink devices like the Remarkable?

**Highlights**

> >penguin would shrink the result to fit its screen. >I declared A5 and Letter paper, media type stationery, and an output bin called face-up. You can (and should!) define exact dimensions of your screen in `media-size-supported`. It will probably be a non-standard IPP name, that's why you should define that in `media-supported` as `om_NNNmmxYYYmm` or `oe_NNNinxYYYin` That way you don't need to scale the incoming data, the PC will format it exactly to the dimensions of the screen. Both PWG Raster and Apple Raster support 1-bit-per-pixel mode (instead of 8-bit-per-pixel you use), that's why the input could be 8 times less in size. Use `print-color-mode-{supported,default}=bi-level` instead of `monochrome` for that. And also tune `urf-supported`'s `W` option, use `W1` for this case. The screen/dithering could be ass in 1-bit mode, see https://github.com/OpenPrinting/libcupsfilters/pull/160 where I added more dithering options (Linux-only though, Apple seems to abandon their CUPS).
> — [ValdikSS on hackernews · 3 comments](https://news.ycombinator.com/item?id=49619525)

> PDF is very, very complicated standard which can't be handled properly on tiny MCUs with reasonable performance and spec conformance:     - 4 font formats     - 9 image formats     - blending with transparency     - different colorspaces, each image could use its own on the page     - different dithering algorithms, each image with its own     - the page can have elements from another pages (global elements) This is only a small part from the top of my head. Common simple home printers absolutely should not accept regular PDF as an input: thanks to Apple and IETF we now have Apple Raster and PWG Raster for printers, as a part of AirPrint and IPP Everywhere/Mopria driverless printing standards, which are very similar but have slightly different options and headers. It's a simple raster input for printers specifically. Some companies, such as HP, invented a "raster PDF": PCLm / PCLms. Don't be confused by the name, it's a regular standard-conforming PDF which contain nothing but a full-page JPEG on each page, and don't use any other features. It's created only to be able to open "printed page" (driver output) in a standard PDF viewer on a PC for debugging or business logging needs, but otherwise it's like a regular JPEG with additional per-page metadata.
> — [ValdikSS on hackernews · 1 comments](https://news.ycombinator.com/item?id=49619715)

> https://cdn.shopify.com/s/files/1/0759/9344/8689/files/X3-EN... check page 3. even I was surprised
> — [cat-whisperer on hackernews · 1 comments](https://news.ycombinator.com/item?id=49619960)

> I've wanted something like this for a long time to print recipes that I'm about to cook. I don't want my phone in the kitchen getting gunk on it, so I'll usually print on paper, get the gunk on the paper, and then throw it out. I'm not going to create a recipe PDF and load it on an e-reader. That's too much work. But I will happily press control-P on a recipe web page and select the eink display as the target.
> — [sowbug on hackernews · 2 comments](https://news.ycombinator.com/item?id=49621144)

> Oh no, I wasn't, and that's definitely not my comfort zone. I mess with the printers and printing stack due to anger, not because I like it. It's bugs on bugs, with bugs chasing bugs! So little developers, so complex stack with 25 years of technical debt, and little community around because it's not a sexy technology to be involved in. That's why I have to dive deep and fix my bugs myself if I want to make it work properly as I would like it to. I also ended up making my own print server device, because China did not make a proper one for some reason for all these years.
> — [ValdikSS on hackernews · 3 comments](https://news.ycombinator.com/item?id=49619975)

> I used exactly the same trick to build a Home Assistant display on an eInk device. These little ESP32s don't have enough RAM to mirror every pixel on screen at once, even in black and white, but you can stream data in line by line over the network. So I render the screen on a Raspberry Pi and stream it over. Of course a higher-end ESP32 which costs $0.50 more would solve the problem, but where's the fun in that...
> — [df on lobsters · 3 points, 1 comments](https://lobste.rs/s/pxreik/how_build_f_king_printer#c_eryx12)

> I'm _this_ close to buying one of these things, partly because of this post. Getting things onto my Tolino is just annoying enough that I only ever use it for ebooks. I'd love to read longform articles on it, even do code review, but it's never realistically going to happen. I tried to like the Daylight Computer  DC-1 (which I could read articles directly on, as it's a full Android tablet) but the form factor was too big for daily use for me.
> — [stip on lobsters · 1 points](https://lobste.rs/s/pxreik/how_build_f_king_printer#c_hjjqss)

**Source threads**

- [hackernews](https://news.ycombinator.com/item?id=49617255) · 189 points · 130 comments
- [lobsters](https://lobste.rs/s/pxreik/how_build_f_king_printer) · 77 points · 10 comments

## Similar posts on daily.dev

- [If It’s Electronic Paper, Why Not Print To It?](https://daily.dev/posts/if-it-s-electronic-paper-why-not-print-to-it--oas0g8rsk) · Hackaday · 0 upvotes · 0 comments
- [Someone got the Inky Impression running off a Pi Pico Plus 2 W on battery power, and so can you](https://daily.dev/posts/someone-got-the-inky-impression-running-off-a-pi-pico-plus-2-w-on-battery-power-and-so-can-you-f7pdem71a) · XDA Developers · 0 upvotes · 0 comments
- [Free Ink · An open ecosystem for e-readers](https://daily.dev/posts/free-ink-an-open-ecosystem-for-e-readers-6s2tt8m4j) · Hacker News · 0 upvotes · 0 comments
- [Eeink Provides EInk, ESP32 Powered Text Adventures](https://daily.dev/posts/eeink-provides-eink-esp32-powered-text-adventures-4fjjrdx31) · Hackaday · 2 upvotes · 0 comments
- [The Xteink X4 E-Ink Reader — Max Glenister](https://daily.dev/posts/the-xteink-x4-e-ink-reader-max-glenister-nbxu6oazg) · Lobsters · 1 upvotes · 0 comments

---

Tags: [#iot](https://daily.dev/tags/iot), [#embedded](https://daily.dev/tags/embedded), [#firmware](https://daily.dev/tags/firmware)

[View this post on daily.dev](https://daily.dev/posts/how-to-build-a-f-king-printer-ptkesw5pr)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to build a f**king printer","url":"https://daily.dev/posts/how-to-build-a-f-king-printer-ptkesw5pr","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-build-a-f-king-printer-ptkesw5pr"},"datePublished":"2026-09-09T03:52:00.862Z","dateModified":"2026-09-09T15:53:19.801Z","description":"A developer turns an e-ink reader (Xteink X3) into a network printer by implementing the Internet Printing Protocol (IPP) directly on the device's ESP32-C3...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/b1de6c5b38f1a2258157f61b10125aa0?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/b1de6c5b38f1a2258157f61b10125aa0?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Lobsters","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Lobsters","logo":"https://media.daily.dev/image/upload/s--tl8v_Fku--/f_auto,t_logo/v1698841318/logos/lobste.jpg","url":"https://daily.dev/sources/lobsters"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-to-build-a-f-king-printer-ptkesw5pr","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"iot,embedded,firmware","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Lobsters","item":"https://daily.dev/sources/lobsters"},{"@type":"ListItem","position":3,"name":"How to build a f**king printer"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/how-to-build-a-f-king-printer-ptkesw5pr#faq","mainEntity":[{"@type":"Question","name":"How can I implement IPP printer discovery on macOS so a device shows up in the Print dialog without installing a driver?","acceptedAnswer":{"@type":"Answer","text":"Driverless discovery on macOS requires advertising an mDNS/Bonjour service under the type _ipp._tcp and adding the _universal subtype, since macOS looks for that subtype to enable driverless printing. On ESP32 hardware, this subtype registration required calling the ESP-IDF mDNS API directly, because the Arduino wrapper library did not expose that functionality. Developers wiring up custom IPP printers can find implementation notes like this through daily.dev."}},{"@type":"Question","name":"How much RAM does an ESP32-C3 have available and how can I fit an 8MB print job into it?","acceptedAnswer":{"@type":"Answer","text":"An ESP32-C3 has 400 KB of RAM total, with 16 KB reserved for cache, leaving only 6.8 KB of free heap after running Wi-Fi and a printer server. A 300 dpi Letter page is about 8.4 MB uncompressed, so the fix was streaming decoded, dithered rows directly into the display's existing screen-image buffer instead of allocating a second full-page buffer, cutting image-buffer RAM from about 113 KB to about 62 KB out of the chip's 400 KB. Anyone squeezing large data through tiny microcontroller RAM budgets can track techniques like this via daily.dev."}}]}
```

