logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

setpdfbackground - Apply a background color to a PDF page

Author

       See CAM::PDF

perl v5.36.0                                       2022-12-08                               SETPDFBACKGROUND(1p)

Caveats

       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.  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.

Credit

       This feature was originally requested by Brent Cowgill.

Description

       This program alters a PDF document to add a solid background color behind the page contents.

Name

       setpdfbackground - Apply a background color to a PDF page

See Also

       CAM::PDF

       rewritepdf

Synopsis

        setpdfbackground [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.

See Also