APPENDPDF(1p)
β¨ 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--formsoption 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
- debian bookworm: libcam-pdf-perl 1.60-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcam-pdf-perl 1.60-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcam-pdf-perl 1.60-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcam-pdf-perl 1.60-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcam-pdf-perl 1.60-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms