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

"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 cheeki kea's photo
11 hours ago
cheeki kea posted a photo
11 hours ago
cheeki kea commented on Doc Vega's blog post The Rabbit Hole
"Good poem for these times. I think it's only going to get worse though as we enter into the…"
11 hours ago
cheeki kea posted a blog post
yesterday
Doc Vega posted a blog post

Our Crazy Modern World

I'll be your host tonight in our first episode of "Our Crazy Modern World". Join us now!Apparently…See More
Sunday
Burbia commented on cheeki kea's blog post BREAKING: The Epstein Files Illuminate a 20-Year Architecture Behind Pandemics as a Business Model.
"What a bummer. Can't tell thie 'dead' guy to eat shit now."
Saturday
Burbia commented on rlionhearted_3's photo
Thumbnail

2DF36465-A826-443C-A3A8-6638BC1D4FFA

"Venezuela under Chavez had cut ties with the IMF and World Bank. He had suggested that the US had…"
Saturday
Burbia commented on Doc Vega's photo
Thumbnail

G_LrzqtXMAAhT7w

"Derelict of duty should be reason for removal of these judges. That would go against what is in…"
Saturday
Doc Vega posted blog posts
Friday
tjdavis favorited Parrhesia's video
Thursday
tjdavis favorited UnitedWeStand's video
Thursday
tjdavis favorited Sandy's video
Thursday
tjdavis posted a photo
Thursday
Doc Vega commented on rlionhearted_3's photo
Thumbnail

2DF36465-A826-443C-A3A8-6638BC1D4FFA

"You can't subvert a nation that has already been subverted by Marxists and drug cartles who…"
Feb 11
Doc Vega commented on rlionhearted_3's photo
Thumbnail

2DF36465-A826-443C-A3A8-6638BC1D4FFA

"Venezuela was once a thriving nation until the left and Communism infiltrated the government, and…"
Feb 11
tjdavis posted a photo
Feb 10
tjdavis posted a video

Jacob Collier Improvises With Orchestra (Live in San Francisco)

A few months ago, I had the joy of performing with the world's first Audience Symphony Orchestra in San Francisco, a gathering of fans from all over North Am...
Feb 10
Doc Vega posted blog posts
Feb 10
Роман posted a blog post

Архітектура для мегаполісів: виклики та рішення урбаністики

Сучасні мегаполіси — це складні живі організми, де переплітаються економіка, культура, технології…See More
Feb 9
Tori Kovach posted a discussion

Pumpkin Face

Is he dead yet?See More
Feb 8

© 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