Publishing a book independently comes with a long list of worries, and piracy sits near the top for anyone who has spent months writing something worth selling. The traditional approach to protecting digital books involves DRM systems that restrict how buyers can read their own purchases, which creates frustration for honest customers while barely slowing down determined pirates. There had to be a better approach, something that would not punish legitimate readers but would still leave a trail when a copy ended up somewhere it should not be. That approach turned out to be surprisingly simple: embed a unique QR code into every single copy of the PDF at the moment of purchase.

The idea came from a very practical place. Selling a book as a PDF means every buyer receives a digital file that can be copied, shared, and redistributed with zero effort. Unlike physical books where sharing requires handing over the actual object, digital files multiply infinitely. The question was never whether piracy would happen, but whether there would be any way to trace it when it did. Traditional visible watermarks that stamp "SAMPLE" or "DO NOT DISTRIBUTE" across every page degrade the reading experience and get cropped out in minutes by anyone with basic PDF editing skills. The goal was something invisible enough not to annoy readers, yet traceable enough to identify the source of a leak.

A QR code embedded as a watermark on a specific page of the PDF turned out to be the answer. Each QR code encodes a short URL, and that short URL contains an encrypted hash. The hash ties the copy to the specific buyer, but only the publisher can decode it. From the reader's perspective, it looks like a small decorative element or a link to bonus content. From the publisher's perspective, it is a fingerprint that uniquely identifies every copy ever sold.