http://lilithlela.cyberguerrilla.org/?p=568

This blog intends to augment USP no. 3: The danger of metadata [digital footprints] (original here) for *nix distros:

There is a freeware program by the name of PDF Info (http://www.bureausoft.com/pdfinfo.exe) which lets you edit not only the aforementioned Title/Author/Subject/Keywords fields, but also the PDF Producer and Creator Application fields. It doesn’t, however, let you change the file creation and modification dates and times.

The PDF Toolkit(pdftk) claims to be that all-in-one solution. The closest thing to Adobe Acrobat for Linux.

You can download pdftk as source or as a Debian or RPM package, FreeBSD port, or Gentoo Ebuild. Binaries are available for Windows and Mac OS X too. If you decide to compile pdftk, check the build notesbefore you begin, in order to find out about any dependencies for your Linux distro or your platform.

I am lazy, I chose to install package. Installing the pdftk package on Ubuntu and Backtrack requires having "universe" enabled. Then:

$ sudo apt-get install pdftk

 

The following extra packages will be installed: gcj-4.4-base gcj-4.4-jre-lib libbcmail-java libbcmail-java-gcj libbcprov-java libgcj-bc libgcj-common libgcj10 libgnuinet-java libgnujaf-java libgnumail-java libitext-java libitext-java-gcj

After this operation, 66.5MB of additional disk space will be used.

Looking at the metadata

To look at the metadata that Adobe Reader does not show by default (replace 034045 with your pdf filename):

$ pdftk 034045.pdf dump_data

 

Altering the metadata

To alter the metadata first put the metadata in a file (replace 034045 with your pdf filename):

$ pdftk 034045.pdf dump_data output pdf-metadata

Open the pdf-metadata file and remove the data you wish scrubbed:

Save the pdf-metadata file. Now you can use that data to scrub the metadata from your file (replace 034045 with your pdf filename):

$ pdftk 034045.pdf update_info pdf-metadata output 034045-no-metadata.pdf

And check the result with:

$ pdftk 034045-no-metadata.pdf dump_data

 

And now the somewhat less elegant scrubbing on *nix

The creation date is gone and a new modification date has appeared. And the iText gives away the use of pdftk. These infokeys can be removed with sed:

sed -i 's/iText\ 2\.1\.7\ by\ 1T3XT//;s/D:20120409144213+02'\''00'\''//' 034045-no-metadata.pdf

 

The '\'' are for breaking out of the single quoted string thenescaping the single quote.

PdfID0 and PdfID1 are file identifiers. They are an md5 of various info about the file so that it has a unique string to identify the doc without having to use the filename. If you want to scrub those too, use sed as above. There's no geeky tricks needed for cleaning those two from the metadata with sed, it's pretty straightforward.

Views: 2260

"Destroying the New World Order"

TOP CONTENT THIS WEEK

THANK YOU FOR SUPPORTING THE SITE!

mobile page

12160.info/m

12160 Administrators

 

Latest Activity

cheeki kea commented on Burbia's video
Thumbnail

Soros Will Never Recover..Elon AIR The whole Thing

"Good find Burbia. It can only get worse. Is Soros too big to fail for he has his thumb in every pie…"
14 hours ago
Doc Vega posted blog posts
14 hours ago
Doc Vega commented on Doc Vega's blog post What's Meant to Be?
"tjdavis Thanks for your support Dude! "
18 hours ago
tjdavis posted photos
yesterday
tjdavis favorited Doc Vega's blog post What's Meant to Be?
yesterday
tjdavis posted a video

PORCUPINE TREE - BUYING NEW SOUL (HD)

Filmed at the Park West, Chicago, USA, 11-12 Oktober 2005
yesterday
Burbia commented on Burbia's video
Thumbnail

Meet GibberLink, Conversational AI's secret language

"One agent's audio range has a lower frequency than the other. Another example of different…"
yesterday
Burbia posted a video

Meet GibberLink, Conversational AI's secret language

Join Boris Starkov and Anton Pidkuiko, the developers behind GibberLink, for a fireside chat with Luke Harries from ElevenLabs.On February 24, Georgi Gergano...
yesterday
Doc Vega posted blog posts
Saturday
Doc Vega posted a blog post

Interpersonal Insanity

Interpersonal Insanity How do you expect me to read your mind?All those hidden things that I might…See More
Friday
cheeki kea replied to cheeki kea's discussion Tartaria
"Look at what we have to put up with. Leftist journalism in full swing. Everyone knows who created…"
Friday
Doc Vega posted a blog post

Why Did We Americans Become so Cynical? At Least Those Who Think

 Cynicism is a form of counter intelligence. It materializes when the general public has been…See More
Wednesday
tjdavis posted a video
Apr 16
Doc Vega posted blog posts
Apr 15
cheeki kea commented on Snakedaddy's album
Thumbnail

a soon shit

"lol at first I thought this was an acronym or phase meaning an urgent trip to the lavatory but alas…"
Apr 15
tjdavis posted a video

Europe will be an Islamic Muslim State

සිංහලෙන් කියවන්න http://sinhalabuddhist.comSlavery, Terrorism and Islam: The Historical Roots and Contemporary Threat.. Adapted from Dr. Peter Hammond's book...
Apr 14
Sandy posted a video

A conversation with Charlotte Iserbyt

“The Deliberate Dumbing Down of America — A Chronological Paper Trail”, will change forever the way you look at your child’s education. Written by whistleblo...
Apr 14
Doc Vega posted a blog post

Realizations

Used to think I had something special to bringThat I was seeing what others weren't seeingThe…See More
Apr 13
Burbia replied to cheeki kea's discussion Tartaria
"I forget some written language reads from right to left. The various calendars used up to now from…"
Apr 13
Less Prone favorited Burbia's blog post Mystery illness strikes Russia with fever, blood symptoms, and no cure in sight.
Apr 13

© 2025   Created by truth.   Powered by

Badges  |  Report an Issue  |  Terms of Service

content and site copyright 12160.info 2007-2019 - all rights reserved. unless otherwise noted