gotcha

Author Topic: SVG to PDF transparency issue  (Read 7860 times)

December 13, 2017, 03:50:07 AM
Read 7860 times

cross731

  • Newbie

  • Offline
  • *

  • 1
Hello everyone,

As you may know, Inkscape has a difficult time converting transparency from SVG to PDF. This is one of the cases. Please find the attached file. Whenever I use "Save As" to convert to PDF, the "Orange background" layer doesn't show. I'm attributing this to the object's opacity/alpha properties. I may be wrong. I'd like to know if there's a way to successfully convert it to PDF without rasterizing. Please let me know your thoughts.

Kind regards,
Ched
  • Inkscape 0.92
  • Windows 10

December 13, 2017, 11:10:23 AM
Reply #1

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
It's a clipped and masked clone of a group that is only available in the defs section. Inkscape's pdf export has difficulties with those multiple-nested clone things. Unlink the clones, and it's going to work.

December 13, 2017, 11:50:49 PM
Reply #2

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Welcome to the forum!

In case you aren't aware, there are clones inside groups inside clones inside groups, and etc..  I suggest hiding all the other layers, so that only the problematic one is visible.  Then select all, then click the Unlink Clones button (on the command bar, looks like this   :ucl:  That should unlink them all at once.

Hhm...but unfortunately, it doesn't....and I'm not sure why.  It could be a lot of work finding all the clones and unlinking them.  I'm not sure if there is a way to do it all at once now.  Maybe Moini has an idea?

And plus, uncloning the first step also unmasks the first group.  I'm not sure if that should be happening.  I wonder if it could be a bug?

The shortest route to success might be isolating that layer, select all, and then Edit menu > Make a Bitmap Copy.  This will create a PNG, which should export without any problem.  Just be sure to hide the original multiple grouped/cloned/clipped/masked object.
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

December 14, 2017, 03:55:55 AM
Reply #3

Lazur

  • IC Mentor

  • Offline
  • ******
  • Inkscape Filters Wizard

  • 1,154
  • Gender
    Male

    Male
Haven't tested the file but my experience  is masking won't transfer to pdf-s.
Would definitely redraw that part with no masking.