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: 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.

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