in reply to Re: PDF::Tk Background Image
in thread PDF::Tk Background Image

EEEEEEEEE!!!! THIS WORKS!!! OMG I AM SO HAPPY!!! Okay, there is just one issue and I hope it's a small one. My generated text, has a white background that I can't seem to make transparent because the PDF ignores all of my CSS. Any ideas?

Replies are listed 'Best First'.
Re^3: PDF::Tk Background Image
by soonix (Chancellor) on Oct 25, 2016 at 19:55 UTC
    Huh? Transparent background? What would you want to see through that?
    Or is it the "foreground" that is non-transparent? Then perhaps your first step (html2ps or ps2pdf) explicitly sets the background color to "white". Try to omit that.

    Update: from what I could google about html2ps, it defaults to a white background, so you'd have to modify your html2psrc-tst file.
    If you're doing this anyway, perhaps you can integrate the new background there, so that you eliminate the need for PDF::Tk …

Re^3: PDF::Tk Background Image
by jellisii2 (Hermit) on Oct 25, 2016 at 17:22 UTC
    I don't think PDF supports transparent backgrounds... Perhaps you want to make a .png file?
      I am using html2ps so I think it's a ps file before it's a pdf when I merge it with a watermark.
        The PDF tools I've used in the past supported layers. That may be a direction to look at.