Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

how do I crop

Name: Anonymous 2012-11-07 19:20

I have a 720-page DRM-laced textbook I intend to emancipate. Well I printed it out to PDF but it tacked on a header of "PRINTED BY: My Name <myemail@address.com>. Printing is for personal, private use only. No part of this book may be reproduced or transmitted without publisher's prior permission. Violators will be prosecuted." - I don't really give a shit but I don't want my e-mail on something to spreading online.

What is some clever /prog/rider way you think I can crop that shit out in every single page? The current retard tier idea I have is recording a mouse macro of me cropping one page, and then printing that single page to pdf, and then repeating that for every page and then merging it all back together.

Name: Anonymous 2012-11-07 19:39

disregard that, I suck dicks
found an online tool to do it. It didn't actually remove the cropped stuff from file, but reprinting that, I got what I wanted.

Now though there is the mild issue of the textbook being some 200 megs. And you can't search it. Oh well.

Name: Anonymous 2012-11-07 19:45

It would have been much easier to edit the PDF to remove all traces to your email. I'm pretty sure most PDF editors have some macro or regexp feature.

Name: Anonymous 2012-11-07 20:48

>>3
PDF ``editors'' usually fuck everything up because it's a compiled format. A lot of stuff is tokenized so editing one thing might ruin the whole document.

PostScript was better than PDF.

Name: Anonymous 2012-11-07 21:22

Hack the epub instead.

Name: Cudder !MhMRSATORI!fR8duoqGZdD/iE5 2012-11-08 6:10

>>4
PDF's page drawing language is just simplified PostScript that is thankfully not Turing-complete.

I've done this sort of stuff with sed and a pipeline of PDF-specific filters. All you need to do is strip out the text commands, which usually look like this:

(THIS IS A BIG SCARY WATERMARK!) Tj

and are the same every time they appear. Sometimes they're images, which makes the grep string even shorter.

Name: Anonymous 2012-11-08 7:21

cyahr n cudder

Name: Anonymous 2012-11-08 7:21

>>6
Fuck off, Cudder.

Name: Anonymous 2012-11-08 7:21

>>6
Reminded me of:


"Print?" the guy scoffed. "I don't need to print anything. My numbers are too massive for this piece of crap PC to crunch. I need the printer's extra CPU and RAM power."

"What are you talking about?" Bob exploded, "The print server is patently worse that everyone's PC, yours included!"

"You fool!" He swiveled towards Bob. "You don't understand at all. That job is a piece of PostScript code. The print server isn't running my numbers. The PRINTER is! It's far more powerful than you can imagine!"

Name: Anonymous 2012-11-08 7:28

>>3
It would have left large margins, but yeah maybe should have done that and saved myself the bother

>>5
It was some bullshit propriety format, vitalsource .vbk

I guess it would be about as good as new if I shoved it through some OCR software, except the relatively huge filesize, but what're you gonna do.

Name: Anonymous 2012-11-08 10:21

At this point you might as well publish it as a series of JPGs.

This thread hurts to read.

Name: Anonymous 2012-11-08 10:33

Have you not actually searched for the string in question in the pdf? Using grep. See >>6.

Name: Anonymous 2012-11-08 11:33

>>6
I love you, Cudder-sama!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List