You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Offline PDF export always renders annotations strokes as thick grey lines #20002
I'm not sure if this should be classified as a bug. If you take a look at the console there are warnings about the attributes that are not allowed. When added, everything works as expected- demo.
@karolkolodziej thanks for the fix. I'm able to get my application working properly.
This feels like a bug since all other exporting options work as expected when the AST statements are not present (server exporting for PNG, SVG, and PDF, as well as offline exporting for PNG and SVG).
When clicking the link in the console warning, it says:
This error occurs if HTML in the chart configuration contains unknown tag names or attributes.
The tag names and attributes in question are added by highcharts code (or by libraries imported by highcharts), as triggered by expected values in the chart config. Would this be a valid reason to add them to the "allow lists" by default? The point of the warning is to stop potentially malicious behavior, but it's not malicious to build a simple chart config that conforms to the published documentation.
Activity
karolkolodziej commentedon Oct 26, 2023
Hi @ransoing!
I'm not sure if this should be classified as a bug. If you take a look at the console there are warnings about the attributes that are not allowed. When added, everything works as expected- demo.
ransoing commentedon Oct 26, 2023
@karolkolodziej thanks for the fix. I'm able to get my application working properly.
This feels like a bug since all other exporting options work as expected when the AST statements are not present (server exporting for PNG, SVG, and PDF, as well as offline exporting for PNG and SVG).
When clicking the link in the console warning, it says:
The tag names and attributes in question are added by highcharts code (or by libraries imported by highcharts), as triggered by expected values in the chart config. Would this be a valid reason to add them to the "allow lists" by default? The point of the warning is to stop potentially malicious behavior, but it's not malicious to build a simple chart config that conforms to the published documentation.
karolkolodziej commentedon Oct 27, 2023
I'm glad that everything works now!
Thank you for sharing this, you are actually right- this should be treated as a bug. 😉
Fixed #20002, stroke wasn't applied to annotations offline PDF export.
Fixed #20002, stroke wasn't applied to annotations offline PDF export.
Fixed #20002, stroke wasn't applied to annotations offline PDF export.