Transparant background when printing or rather when saving PDF

pim's Avatar

pim

04 Dec, 2013 04:51 PM

Hi,

I need to create PDF's with a transparant background. This way I can easy add a letterhead with an drag and drop app I use. I tried to hack the css file in the @media:print section. Though I could change the background into a different solid color, I couldn't make it transparant. I tried different css values like rbga(), none and transparant.

Is there a way to make the background transparant in stead of white?

Thanks,
Pim Snel

  1. Support Staff 1 Posted by Brett on 04 Dec, 2013 05:09 PM

    Brett's Avatar

    I'm not certain it's possible with the WebKit print system, but I'll see
    if I can find a preference for it.

  2. 2 Posted by pim on 11 Dec, 2013 07:59 PM

    pim's Avatar

    I found the solution!
    [self.webView setDrawsBackground:NO];

    When using this, it completely respects transparency.

    It would be great to have this as an option at least.
    Thanks,
    Pim

  3. Support Staff 3 Posted by Brett on 11 Dec, 2013 08:56 PM

    Brett's Avatar

    I believe I adjusted that already in the last update. If not, it will be in the next.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • Schermafbeelding_2013-12-04_om_17.50.48.png 214 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac