• raxo10

    (@raxo10)


    [ Moderator note: moved to Fixing WordPress. Please do not use Developing with WordPress for these topics. ]

    Hello!

    All SVG pics in generated DK PDF have black background. Every SVG pic in posts have transparent background but when they appear in PDF they have all black backgrounds. I want them to have white background and I tried this:
    img {
    background-color: #FFFFFF;
    }

    but it doesn’t work.

    Thanks for any help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I’m not sure I understand, from what you describe you have an issue with the tool you’re creating the PDF – not WordPress.

    Thread Starter raxo10

    (@raxo10)

    I don’t know where is the problem and I don’t know what to do.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I think you’re having a problem with a particular plugin named “dk-pdf”. Is that the plugin you have installed? https://en-gb.wordpress.org/plugins/dk-pdf/

    Thread Starter raxo10

    (@raxo10)

    Yes, exactly. I made a topic on this plugin forum but noone have an idea how to solve this problem.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I think you may have to set a white (or which ever colour suits) background on your SVGs for now.

    Thread Starter raxo10

    (@raxo10)

    I have a lot of SVGs. Is there a way to edit their background in wordpress? It will take hours to edit those files manually. I tried to edit it by CSS but it doesn’t work in PDF plugin.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘SVG in PDF’ is closed to new replies.