setpdfmetadata(1)

πŸ“¦
version 1.9.6 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– setpdfmetadata β€” the PDF Metadata Updater ✨

okay bestie, gather round, because this is a little command from the General Commands Manual section 1 and it is genuinely SO useful. it's giving "I just want to fix my PDF's vibes" and honestly? same. πŸ’…


🌸 NAME 🌸

setpdfmetadata β€” the PDF Metadata Updater, no cap πŸŽ€


✨ SYNOPSIS ✨

setpdfmetadata [Input PDF] [Metadata] [Output PDF]

πŸ¦‹ DESCRIPTION πŸ¦‹

so like, setpdfmetadata is the tool you call when you want to add and update the metadata of a PDF file. that's the whole main character energy of it. in particular, it can be used to add outlines (aka bookmarks, yes the little sidebar tree, iconic) to a document. 🫢

and on top of that? it can set the document properties, like author, title, keywords, creator, producer. all of them. slay.

⚠️ okay important warning time: note that all metadata content will be encoded in ISO-8859-1 encoding. it is not (yet) possible to use non-ISO-8859-1 text in the PDF metadata. so no emoji in your metadata, sadly, I know, I'm devastated too 😭

the metadata may contain the following commands:

  • outline Level Page Bookmark β€” add a PDF outline at the given level (0=chapter, 1=section, 2=subsection, 3=subsubsection, 4=paragraph, ...) and pointing to the given page number. Bookmark denotes the label text. πŸ“‘
  • author Author β€” sets the document author to the given value. ✍️
  • title Title β€” sets the document title to the given value. πŸ‘‘
  • title Subject β€” sets the document subject to the given value. πŸ’Œ
  • keywords Keywords β€” sets the document keywords to the given value. πŸ”
  • creator Creator β€” sets the document creator to the given value. 🧚
  • producer Producer β€” sets the document producer to the given value. 🌈

πŸ’œ ARGUMENTS πŸ’œ

the following arguments have to be provided β€” like, they're not optional bestie, they're required fr fr:

  • Input PDF β€” the input PDF file name. πŸ“₯
  • Output PDF β€” the output PDF file name. πŸ“€

πŸ“ EXAMPLES πŸ“

a setpdfmetadata usage example, look at her go:

setpdfmetadata MyDocument.pdf MyMetadata.meta MyDocument-Updated.pdf

and a metadata example, so you can see what the vibe of the metadata file is:

outline 1 1 Chapter 1
outline 2 2 Section 1.1
outline 2 4 Section 1.2
outline 1 6 Chapter 2
author John Smith
title An Example Document
keywords Example, PDF, setpdfmetadata

🌟 AUTHORS 🌟


and that's the whole page, bestie. go forth and give your PDFs the metadata glow-up they deserve πŸ’–βœ¨

this one came from the setpdfmetadata manual, dated May 18, 2017 β€” written by Thomas Dreibholz, and I hope you loved reading it as much as I loved explaining it to you. mwah. πŸ’…πŸŽ€

πŸ“¦ where this page comes from