yWorks / jsPDF

JavaScript PDF generation to work with SVG
MIT License
56 stars 23 forks source link

fill-opacity is only applied to one element, subsequent elements ignored #5

Closed yGuy closed 7 years ago

yGuy commented 7 years ago

This has been originally reported in https://github.com/yWorks/svg2pdf.js/issues/29 -there is also a proposed solution.

TorsteinHonsi commented 7 years ago

Thanks!

TorsteinHonsi commented 7 years ago

I tried this change locally and it works fine:

      activeFontKey = fontState.key;
      activeFontSize = fontState.size;

      activeGState = null;

      return this;
    };

Will you do the change in the repo?

yGuy commented 7 years ago

Should be fixed with the newest 1.2.69 (along with the broken build).

TorsteinHonsi commented 7 years ago

Great, thanks!

FYI, the version number in the header seems to be forgotten: https://github.com/yWorks/jsPDF/blob/v1.2.69/dist/jspdf.min.js#L3