Why is stroke in my exported PDF black while it's gray in Inkscape?

This is how it looks in Inkscape:

sample with grey letters

However, the exported PDF stroke become black inside:

sample with black letters

How can I fix this?

Here is my Inkscape file just incase that you want to check it.

EDIT: I think I found the explanation. Somehow I added stroke paint to a flat color and it causes the problem.

  • Hi. Welcome to GDSE I can't reproduce the problem using your file. The SVG and PDF look exactly the same as your first example image. How are you viewing the PDF? Try using Adobe Reader.
    – Billy Kerr
    Jul 16, 2022 at 22:16
  • @BillyKerr I tried both Adobe Reader and Forxit reader and both show the problem. Also it's visible from the image above if you zoom in a bit? I also tried with Inkscape in both my PC and laptop and have the same problem.
    – hana
    Jul 16, 2022 at 22:19
  • I'm using a Windows PC (Win 10), Adobe Reader DC, and the latest Inskcape (1.2). Sorry, but I just can't reproduce the problem. Here is what the PDF looks like zoomed in. - are you exporting the PDF directly from Inkscape? Are you using File > Save As?
    – Billy Kerr
    Jul 16, 2022 at 22:24
  • I think I found your problem. I've added an answer now!
    – Billy Kerr
    Jul 16, 2022 at 22:30

1 Answer 1


I think I've found the problem. At first I couldn't reproduce this, but I can if I use the Export panel for exporting the PDF.

The Export panel PDF export is really brand new functionality. Wouldn't surprise me if this is a bit buggy. If so, you should perhaps report it.

To fix it, do File > Save As instead. The issue is not present in a PDF exported in this way.

Here's the PDF viewed zoomed in, using "Save As" for the export method.

enter image description here

  • I think I found the explanation. Somehow I added stroke paint to a flat color and it causes the problem.
    – hana
    Jul 17, 2022 at 4:49
  • @hana - but that shouldn't really cause a problem.
    – Billy Kerr
    Jul 17, 2022 at 7:39
  • I think it is as I deleted that and it also solved the problem.
    – hana
    Jul 17, 2022 at 7:48
  • @hana Yes, but adding a stroke to letters should not cause a problem when exporting a PDF. This sounds like a bug.
    – Billy Kerr
    Jul 17, 2022 at 7:50
  • You're probably right. I'm not quite sure about that.
    – hana
    Jul 17, 2022 at 9:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.