setpdfmetadata(1)
π 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 inISO-8859-1encoding. it is not (yet) possible to use non-ISO-8859-1text 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.Bookmarkdenotes 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 π
- Thomas Dreibholz
https://www.nntb.no/~dreibh/netperfmetermailto://thomas.dreibholz@gmail.com
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
- debian trixie: pdfproctools 1.9.6-1 Β· GPL-3.0-or-later
- ubuntu noble: pdfproctools 1.9.6-1 Β· GPL-3.0-or-later
- ubuntu questing: pdfproctools 1.9.6-1
- ubuntu resolute: pdfproctools 1.9.6-1build1 Β· GPL-3.0-or-later
- ubuntu stonking: pdfproctools 1.9.6-1build1 Β· GPL-3.0-or-later
- Copyright (C) 2010-2024 by Thomas Dreibholz
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms