Reputation: 1838
Recently I created a chart which is similar with the one in ny times. It works well. And I tried to export the page to pdf by wkhtmltopdf. I found if the svg with clipPath is generated by JS in runtime. I can successfully export the pdf. However if the svg with clipPath is initially in the html(I copied the html texts from the previous one). The clipPath part does not work anymore(like attachment). I am guessing it is related to absolute path with clip-path. But is still with no luck. Any suggestion for my next step?
Below is related svg from my example which can be viewed in browser but does not work with wkhtmltopdf.(Have reference from NY times ) Local file
Upvotes: 3
Views: 1427