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

"Destroying the New World Order"

TOP CONTENT THIS WEEK

THANK YOU FOR SUPPORTING THE SITE!

mobile page

12160.info/m

12160 Administrators

 

Latest Activity

Tori Kovach posted a photo
1 hour ago
Doc Vega posted a blog post

Has this directive Already Been Recieved by Our Armed Forces?

Office of North American Air and Land Defense 07 March 2028Top Secret Level 5 Intelligence…See More
5 hours ago
Tori Kovach commented on Doc Vega's photo
Thumbnail

entitlement

"I'm not on Facebook but I'll re-post this where I can. "
8 hours ago
tjdavis posted a video

The Art of Listening - Music Documentary (2021)

The Art of Listening is a documentary film about the journey music takes to reach a listener’s ear, from the intent of an instrument maker and composer, to t...
22 hours ago
Doc Vega favorited rlionhearted_3's photo
yesterday
Doc Vega commented on rlionhearted_3's photo
Thumbnail

Biden was paid millions for sending him billions!

"Bidfen and Hunter should be in jail for the rest of their damn lives! "
yesterday
Doc Vega commented on Doc Vega's blog post Do Not Ignore These Signs When Out in the Wilderness!
"cheeki kea as has been revealed by David Paulides, Park rangers have come to him complaining that…"
yesterday
Doc Vega commented on Doc Vega's blog post Extraterrestrial Reality Finally Admitted What are the Repercussions?
"cheek kea John Keel did indeed almost corner the Yeti in the mountains of Tibet suffering a cobra…"
yesterday
Doc Vega commented on Doc Vega's blog post Extraterrestrial Reality Finally Admitted What are the Repercussions?
"Less Prone, yes we have ahd a plethora of passenger jet pilots going back to 1948 that have…"
yesterday
Less Prone favorited Doc Vega's photo
yesterday
Less Prone favorited rlionhearted_3's photo
yesterday
Less Prone favorited rlionhearted_3's photo
yesterday
Less Prone commented on Doc Vega's blog post Extraterrestrial Reality Finally Admitted What are the Repercussions?
yesterday
cheeki kea commented on Doc Vega's blog post Do Not Ignore These Signs When Out in the Wilderness!
"If you're an outdoors type for safety it might pay to seek advice of a park ranger before…"
yesterday
cheeki kea commented on Doc Vega's blog post Extraterrestrial Reality Finally Admitted What are the Repercussions?
"Yes, well I think he ( writer John Keel ) was another one who started his early years seeking out…"
yesterday
Tori Kovach commented on rlionhearted_3's photo
Thumbnail

Who’s are the hypocrites?

"Yes, but only until the the psych wards ran out of room because they became inundated with MAGA…"
Thursday
Doc Vega commented on rlionhearted_3's photo
Thumbnail

Who’s are the hypocrites?

"Remember when people like this Dipstick were sent to psych wards for evaluation?"
Wednesday
Doc Vega posted blog posts
Wednesday
Tori Kovach commented on rlionhearted_3's photo
Thumbnail

Who’s are the hypocrites?

" "I’m all for deporting or hanging American traitors. Lie some more."  I…"
Wednesday
rlionhearted_3 commented on rlionhearted_3's photo
Thumbnail

Who’s are the hypocrites?

"I call bullshit. What part of “illegal “ alien does the Trump Deranged lefty not…"
Wednesday

© 2026   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