TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Getting a full PDF from a DRM-encumbered online textbook

109 pointsby mr_tyzicover 9 years ago

7 comments

aftbitover 9 years ago
I've done the same thing before on a book in college, except my DRM wasn't nice enough to let me print 10 pages at a go. Instead, I spun up a virtual X server with Xdummy with a resolution of 1200x10000. That showed a few dozen pages at a time. Then I automated screenshots (scrot) and PageDown (xdotool). Finally, some PIL magic to look for the thin gray line between pages plus convert and ghostscript and I had a PDF!
评论 #10431307 未加载
pdwover 9 years ago
Watermarks and such are easy to remove with PDFtk, the swiss army knife of PDF files. Convert the input files to a plain-text representation, find the code that implements the watermark (it will be the only code that's identical on every page), delete it and convert back. Easy as pie. It will also concatenate the partial files.
评论 #10430195 未加载
评论 #10428779 未加载
评论 #10429077 未加载
评论 #10429517 未加载
gohrtover 9 years ago
DRM-laden online books is a red flag that the college you are attending is a thinly veiled profit center, not an education provider.<p>Has anyone made an index of which colleges require DRM textbook purchases in their courses?
评论 #10430000 未加载
评论 #10429913 未加载
评论 #10430227 未加载
Johnny_Brahmsover 9 years ago
I have this idea that any material that uses DRM should not be covered by copyright simply because it removes itself from things that will end up in the public domain.<p>For me, one of the wonderful things about copyright is that works always end up available for free to the general public. A DRMed work will never be free in that sense, and should then not be covered by the regular legal protections.
评论 #10430895 未加载
DanBCover 9 years ago
I&#x27;m glad he did it, and published the result. But isn&#x27;t cracking DRM a criminal offence? Is it wise to confess to it in a public forum?
评论 #10429702 未加载
评论 #10429084 未加载
评论 #10430168 未加载
评论 #10429278 未加载
sotojuanover 9 years ago
As someone interested in Clojure, it&#x27;s cool to see stuff like this build with it. Luckily I haven&#x27;t needed to purchase expensive books since freshman year. Everything I&#x27;ve been required to I either rent on Amazon for $30 or find online.
mixedmathover 9 years ago
I notice he said the final product was around 700 megabytes, which is a bit absurd. What could he have done to make the final size more reasonable?
评论 #10430424 未加载