Skip to content

Instantly share code, notes, and snippets.

View enorms's full-sized avatar

Eric Norman enorms

  • https://angel.co/ericnorman
  • San Francisco, CA
  • X @enxeth
View GitHub Profile
@enorms
enorms / README.md
Created May 21, 2021 00:58 — forked from hubgit/README.md
Remove metadata from a PDF file, using exiftool and qpdf. Note that embedded objects may still contain metadata.

Anonymising PDFs

PDF metadata

Metadata in PDF files can be stored in at least two places:

  • the Info Dictionary, a limited set of key/value pairs
  • XMP packets, which contain RDF statements expressed as XML

PDF files

//
// This sketch will print some of interesting predefined constants to Serial.
//
// For more information, look at
// http://electronics4dogs.blogspot.com/2011/01/arduino-predefined-constants.html
// helper macro
#define LINE(name,val) Serial.print(name); Serial.print("\t"); Serial.println(val);
void setup()