this post was submitted on 11 Mar 2024
198 points (97.1% liked)

Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ

54609 readers
475 users here now

⚓ Dedicated to the discussion of digital piracy, including ethical problems and legal advancements.

Rules • Full Version

1. Posts must be related to the discussion of digital piracy

2. Don't request invites, trade, sell, or self-promote

3. Don't request or link to specific pirated titles, including DMs

4. Don't submit low-quality posts, be entitled, or harass others



Loot, Pillage, & Plunder

📜 c/Piracy Wiki (Community Edition):


💰 Please help cover server costs.

Ko-Fi Liberapay
Ko-fi Liberapay

founded 1 year ago
MODERATORS
 

I know Calibre can remove DRM, but it seems that Calibre does not remove things like watermarks, references to the buyer by name, etc. Now maybe I can try to find those manually, but that is an error prone process. Plus, what if they embed a unique digital signature that ties back to me? I understand that this is a very uncommon practice, but I do not want to find myself in a bad place.

I suppose the only way to remove a digital signature of any sort is to buy two of the same e-book by different people, diff them, and remove anything that differentiates them.

Is there any tool that does this or automates the process? am I being too paranoid, and this is not a real threat?

you are viewing a single comment's thread
view the rest of the comments
[–] Bristle1744@lemmy.today 55 points 8 months ago (3 children)

The bad news is that uploading e-books will involve programming on your part (for your sanity at least).

The good news is that it should be far easier than other mediums.

If you are approaching from a complete safety perspective (cause you live in a fiefdom that owes tribute to the publishers guild), then you're going to want to OCR the pages of the book and use the text to make a brand new book free from metadata. I'm pretty sure a python crash course could get you up and running in a month or 6.

If you want what's closest to the original product, then you'll need a python script that strips everything from the book into just a text document, then re-convert back into your own book. You'll have to review the text document to see if any random code was included in the book like invisible text.

Both options are so simple from a programming perspective that I've never seen scripts to strip e-book protections. A real (the solution is left un-worked as a challenge for the reader). And from what I know, the publishers have switched to focusing on selling hard copies as their bread and butter, and striking deals with libraries for other revenue. Big money is still in mandatory university textbooks.

Source: Never actually done what you're asking for

[–] matcha_addict@lemy.lol 26 points 8 months ago (2 children)

Thanks for your advice. I am a programmer by craft so I can definitely do that. I think the only issue may be books with any important content that is not text, i.e. graphics and images (and unfortunately, many of the books I am interested in have that). If I understood what you said correctly.

[–] Lemongrab@lemmy.one 11 points 8 months ago (1 children)

Pymupdf has options to handle images. Good package.

[–] FierySpectre@lemmy.world 9 points 8 months ago (2 children)

But then those images could contain the very fingerprints he's trying to avoid

[–] iopq@lemmy.world 2 points 8 months ago (1 children)

You can mess with the levels to see any hidden watermarks

[–] FierySpectre@lemmy.world 8 points 8 months ago (2 children)

There are so many ways to encode information into an image without changing its look that I doubt you'll find most of them by "changing levels"

[–] iopq@lemmy.world 3 points 8 months ago

But what transformations are they stable to?

[–] conciselyverbose@sh.itjust.works 3 points 8 months ago

I'd personally be a lot more likely to blur and add random noise, then use lossy compression if I wanted to mitigate steganography, but even then, they don't need to encode a lot of information and they have a base image and secrets to compare to. It's entirely possible for them to have chosen something reasonably robust through random edits like that.

[–] Lemongrab@lemmy.one 2 points 8 months ago

Theoretically, yes. Handling of images programmatically could allow for some simple lossy compression which would help.

[–] Kindness@lemmy.ml 2 points 8 months ago

gImageReader or ocrmypdf will get you the pdf text, but after the text will need fiddling with and cleaning. Use LibreOffice, languagetool, write-good, etc to make finding the oddballs easy.

pdftk is what you want for editing pdf metadata.

Gimp is what you'll need for editing images, Looking for watermarks, smoothing edges, lowering quality, introducing random noise, etc.

exiftool is what you'll need for image metadata. Or take a screenshot, add a bit of noise or de-noise, and add back to the new pdf.

Scrivener or LibreOffice if you want to polish/republish, though that's a ton of work.

[–] reddithalation@sopuli.xyz 8 points 8 months ago

I converted a pdf book scan to epub with tessaract ocr and calibre, it didn't need any programming, but the end result did have a typo every few paragraphs. Most were very similar to each other though, so a few hours cleaning it up would've made it pretty readable.

[–] Redjard@lemmy.dbzer0.com 4 points 8 months ago (1 children)

Even with OCR, couldn't your copy at least in theory be laced with strategically placed minor word changes? Say throughout the book you pick 30 spots to change a word without changing the meaning of the text, or you introduce a typo. If every copy gets a different set of those that would be a unique identifier.
I think I have heard that being done with imperceptable changes in films sent for showings in theaters.

[–] Bristle1744@lemmy.today 5 points 8 months ago

@matcha_addict@lemy.lol In this situation, I'd advise acquiring a copy from an alternative source, then just compare the texts of the two.

In practicality though, if you're already going the OCR route then just utility knife cut the pages from a real book and feed them into a feeder scanner. All they get to know is that some asshole cyberpunk script kiddie jacked your book while you were waiting at a bus stop.