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

"Destroying the New World Order"

TOP CONTENT THIS WEEK

THANK YOU FOR SUPPORTING THE SITE!

mobile page

12160.info/m

12160 Administrators

 

Latest Activity

tjdavis posted a photo
20 minutes ago
Sandy posted a video

KILL THE MESSENGER - Hero Journalist Featurette - In Theaters Friday

In this featurette “Gary Webb: Hero Journalist,” Jeremy Renner (Webb), director Michael Cuesta, Sue Webb and others explore the real man, investigative journ...
15 hours ago
Sandy posted a photo
16 hours ago
Less Prone commented on Burbia's blog post A Masterclass Is Being Played Out For Those Who Have The Eyes To See
"Yes. One of their functions is distraction, but they also bring chaos and crime and change…"
yesterday
Less Prone favorited Burbia's blog post A Masterclass Is Being Played Out For Those Who Have The Eyes To See
yesterday
Burbia posted a blog post

A Masterclass Is Being Played Out For Those Who Have The Eyes To See

A question can be asked, why do Jews want a multicultural community in a host society? It is to…See More
yesterday
tjdavis posted a video

City of Joel - Official Trailer

Now Available on Digital - http://bit.ly/2uxDibn50 miles north of New York City, the town of Monroe is a microcosm for a hyper-partisan and divided nation as...
Friday
Doc Vega favorited omegamann's photo
Friday
Doc Vega commented on Doc Vega's blog post Death Threats for Assisting ICE?
"Less Prone excellent points and I've seen that video too. Very informative! "
Friday
Doc Vega commented on Doc Vega's blog post In the Political Realm They've Gone One Step Too Far!
"Less Prone thanks for your support! "
Friday
Doc Vega commented on Doc Vega's blog post Modern Day Cannibalism?
"Less Prone, you are exactly right! They have been harvesting fetal tissue in vaccines for quite…"
Friday
Doc Vega commented on cheeki kea's photo
Thumbnail

DEAR SANTA...

"Ha ha! Good one! "
Friday
Doc Vega commented on Doc Vega's blog post GROK Acknowledges the Co-existence of Humans and Dinosaurs
"Less Prone, thank you very much for your input/ I always appreciate your insights! "
Friday
Less Prone favorited cheeki kea's photo
Wednesday
Doc Vega's 9 blog posts were featured
Wednesday
Less Prone commented on Doc Vega's blog post Modern Day Cannibalism?
"You may be consuming human tissue unknowingly in vaccines, food or drink. One of the cruellest…"
Wednesday
Less Prone favorited Doc Vega's blog post Modern Day Cannibalism?
Wednesday
Less Prone favorited Doc Vega's blog post Death Threats for Assisting ICE?
Wednesday
Less Prone commented on Doc Vega's blog post Death Threats for Assisting ICE?
"Democrats pretend to be icons of democracy, but what kind of rule do they have in mind? When they…"
Wednesday
Less Prone commented on Doc Vega's blog post GROK Acknowledges the Co-existence of Humans and Dinosaurs
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