SETPDFBACKGROUND(1)

πŸ“¦ version 1.60, in nixos 26.05, nixpkgs unstable

πŸ’… SETPDFBACKGROUND(1) πŸ’…

okay bestie, we're looking at setpdfbackground.pl from the User Contributed Perl Documentation, and it's literally here to give your PDF page a solid background color. cute, useful, iconic.


🌸 NAME 🌸

setpdfbackground.pl β€” Apply a background color to a PDF page

✨ SYNOPSIS ✨

 setpdfbackground.pl [options] file.pdf pagenum color [outfile]

 Options:
   -o --order          preserve the internal PDF ordering for output
   -v --verbose        print the internal representation of the PDF
   -h --help           verbose help message
   -V --version        print CAM::PDF version

The color is specified as 3 or 6 character hexadecimal RGB. For example, f00 and ff0000 both mean pure red while 999 and 999999 both mean medium gray. slay, hexadecimal realness πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

This program alters a PDF document to add a solid background color behind the page contents. that's the whole vibe β€” background color, behind the stuff, done ✨

πŸ’€ CAVEATS πŸ’€

okay so here's the messy part, and we need to talk about it: some PDF creation programs assume a white background and draw bogus white rectangles all over the screen that you usually cannot see. 😭

If your PDF has such rectangles, you can sometimes fix it, but it is a pain. highkey a pain.

The best recommendation is to recreate the original PDF using a smarter library, if possible. Alternatively, you can contact Clotho Advanced Media for a commercial solution to this problem. no cap, those are the options 🫢

πŸŽ€ CREDIT πŸŽ€

This feature was originally requested by Brent Cowgill. ty bestie, iconic request πŸ’–

πŸ”₯ SEE ALSO πŸ”₯

  • CAM::PDF
  • rewritepdf.pl

πŸ‘‘ AUTHOR πŸ‘‘

See CAM::PDF


made with perl v5.42.3, dated 2013-08-15, and yes this page is SETPDFBACKGROUND(1) β€” bye bestie πŸ«ΆπŸ’–

πŸ“¦ where this page comes from