pdfattach(1)

πŸ’– NAME ✨

okay so the big name here is pdfattach πŸŽ€, and it's basically a Portable Document Format (PDF) document embedded file creator (version 3.03) πŸ“„. bestie, it lets you tuck a whole new file inside a PDF you already have πŸ¦‹

🌸 SYNOPSIS 🌸

pdfattach [options] input-PDF-file file-to-attach output-PDF-file

πŸ’… DESCRIPTION πŸ’…

so pdfattach adds a brand new embedded file (aka an attachment) to an existing PDF πŸ’Œ it's giving "hidden gift inside the card" energy 🎁 ngl it's iconic

πŸŽ€ OPTIONS πŸŽ€

  • -replace β€” if there's already an embedded file with the same name, this swaps it out for the new one πŸ”„ (only kicks in if that file actually exists, fr)
  • -v β€” shows you the copyright and version info ✨
  • -h β€” prints the usage info πŸ“– (-help and --help do the exact same thing, no cap 🫢)

πŸ¦‹ EXIT CODES πŸ¦‹

  • 0 β€” no error, we ate πŸ“
  • 1 β€” uh oh, couldn't open the input PDF file 😭
  • 2 β€” couldn't open the file you wanted to attach πŸ’€
  • 3 β€” the output file already exists πŸ™ˆ
  • 3 β€” there's already an attached file with that name πŸ™ˆ (yes, two different things share code 3, it's a whole thing 🫠)
  • 5 β€” something went wrong while saving the output file 😀

πŸ‘‘ AUTHOR πŸ‘‘

the pdfattach software and documentation are copyright 2019 The Poppler developers πŸ’œ the queens who made this possible 🧚

🌈 SEE ALSO 🌈

if you're obsessed with this stuff, go check out pdfdetach(1), pdfimages(1), pdfinfo(1), pdftocairo(1), pdftohtml(1), pdftoppm(1), pdftops(1), pdftotext(1) pdfseparate(1), pdfsig(1), and pdfunite(1) ⭐


okay bestie that's the whole tea 🫢 this page was served by pdfattach(1) from the General Commands Manual, version 3.03, last updated 10 Febuary 2019 πŸŒΈπŸ’– stay iconic, periodt πŸ’…βœ¨

πŸ“¦ where this page comes from