APPENDPDF(1p)

πŸ“¦
version 1.60 Β· 2 versions
  • 1.60 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.60 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ APPENDPDF(1p) ✨

okay bestie, welcome to appendpdf πŸ’– this is a little Perl script from the User Contributed Perl Documentation crowd, and it does exactly one thing: glues two PDFs together. no cap. let's get into it 🫢


🌸 NAME 🌸

appendpdf β€” Append one PDF to another

like... that's it. that's the whole job. append. pdf. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

appendpdf [options] file1.pdf file2.pdf [outfile.pdf]

Options:
  -p --prepend        prepend the document instead of appending it
  -f --forms          wipe all forms and annotations from the PDF
  -o --order          preserve the internal PDF ordering for output
  -v --verbose        print diagnostic messages
  -h --help           verbose help message
  -V --version        print CAM::PDF version

so you hand it file1.pdf and file2.pdf, and optionally an outfile.pdf to write to, and it does the thing. iconic behaviour honestly ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

Copy the contents of file2.pdf to the end of file1.pdf. boom. two PDFs, one PDF now. main character merge energy πŸ‘‘

⚠️ heads up bestie: this may break complex PDFs which include forms, so the --forms option is provided to eliminate those elements from the resulting PDF. so like... if your PDF is fancy and form-y, don't rawdog this, pass --forms. fr fr 😭

and yeah, all the flags from the synopsis work here too β€” -p/--prepend to stick the doc at the front instead of the back, -f/--forms to wipe all forms and annotations, -o/--order to preserve the internal PDF ordering for output, -v/--verbose for diagnostic messages, -h/--help for a verbose help message, and -V/--version to print the CAM::PDF version. slay. πŸŽ€


🌈 SEE ALSO 🌈

  • CAM::PDF β€” the whole reason this exists, the blueprint, the blueprint's blueprint πŸ’œ
  • deletepdfpage β€” for when you gotta remove a page instead of adding one, the opposite vibe entirely πŸ™ˆ

πŸ’œ AUTHOR πŸ’œ

See CAM::PDF

(yes that's literally the whole author section, they said "go read the other one" and honestly? valid. efficient. ate.) πŸ“


and that's the page bestie!! this lil legend comes from perl v5.36.0, dated 2022-12-08, under the User Contributed Perl Documentation banner β€” so if you ever forget where you got it, that's the receipt 🧚✨ go forth and append, you absolute icon πŸ’–πŸ’…πŸ¦‹

πŸ“¦ where this page comes from