Skip to content

Instantly share code, notes, and snippets.

@plusjade
plusjade / pages_filter.rb
Created November 30, 2013 11:12
Ruhoh plugin to pragmatically filter pages in a pages collection by an arbitrary prefix. Useful for filtering into sub-directories of the pages collection.
# ./my-blog/plugins/pages_filter.rb
module PagesFilter
# Filter pages by custom prefix.
# The prefix string is compared against the id which is the relative filepath.
# This enables sub-directory filtering.
# Example:
# <ul>
# {{# docs.filter.2/widgets/ }}
# <li>{{ title }}</li>
@hubgit
hubgit / README.md
Last active March 11, 2025 17:21
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