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

"Destroying the New World Order"

TOP CONTENT THIS WEEK

THANK YOU FOR SUPPORTING THE SITE!

mobile page

12160.info/m

12160 Administrators

 

Latest Activity

Doc Vega commented on rlionhearted_3's photo
Thumbnail

Another incredibly Stupid!! What, no mirrors?

"Personally , I go for the more classic forms of cosmetic surgery! "
5 hours ago
Doc Vega posted blog posts
5 hours ago
Less Prone favorited tjdavis's video
9 hours ago
Less Prone commented on rlionhearted_3's photo
Thumbnail

Another incredibly Stupid!! What, no mirrors?

"When the problem is inside, it causes transformations like this. I like the original better. Maybe…"
9 hours ago
Less Prone favorited james will's blog post YouTube Downloader Tools You Never Knew Existed
9 hours ago
james will posted a blog post

YouTube Downloader Tools You Never Knew Existed

A YouTube downloader is an online tool or software that helps convert YouTube videos into…See More
16 hours ago
tjdavis posted a video

Experimenter - Official Trailer

Like on Facebook: https://www.facebook.com/experimenterfilmYale University, 1961. Stanley Milgram (Peter Sarsgaard) designs a psychology experiment that stil...
22 hours ago
Doc Vega posted a blog post

How Did the Soviets First Discover the SR-71 Blackbird?

Although President Lydon Johnson announced the development of the Lockheed SR-71 in 1964 which…See More
Sunday
Doc Vega commented on Burbia's blog post Disgraced Former CNN Anchor Don Lemon Arrested
"Personally, I don't consider Don Lemon or people like him to be journalists at all. They are…"
Sunday
tjdavis posted photos
Sunday
tjdavis favorited Doc Vega's blog post The Forbidden Canyon and It’s Residents
Sunday
tjdavis posted a video

The Farmer vs the Billionaire — Jeremy Clarkson Says NO to Bill Gates’ £100 Million Deal | UK News

OFFICIAL NOTICE: This channel is NOT Jeremy Clarkson, is not affiliated with him, and does not represent his official views or Diddly Squat Farm. This is an ...
Sunday
Doc Vega posted a blog post

The Forbidden Canyon and It’s Residents

 Chapter OneSituated 10 miles from Mount Jefferson in the Oregon wilderness a forest researcher…See More
Saturday
Less Prone commented on Doc Vega's photo
Thumbnail

G_LrzqtXMAAhT7w

"He would never do that. Mosques and Synagogues are out of the question, only Christianity is free…"
Saturday
Less Prone favorited Doc Vega's photo
Saturday
Less Prone favorited Burbia's blog post Disgraced Former CNN Anchor Don Lemon Arrested
Saturday
Burbia posted a blog post

Disgraced Former CNN Anchor Don Lemon Arrested

No longer an employed journalist, Don Lemon had been seen with far left agitator, Nekima Levy…See More
Friday
Burbia's blog post was featured

The Illusion of Fuck You Money

The United States use to have this idea that once you make enough money, you.can do as you want.…See More
Friday
tjdavis's blog post was featured
Friday
Doc Vega's 4 blog posts were featured
Friday

© 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