We're using Nightmare in our backend server to convert some pages that feature canvas-based charts to PDF. This works fine for typical HTML content, but the canvas-based charts always stick out of their respective containers. Here's a screenshot of what it looks like:
The white area is the margin.
I'm not sure if this is something people working on Nightmare can fix, as I've observed similar behaviour trying to convert one of those pages to PDF using Vivaldi (the browser) and its "print to pdf" feature. Would you happen to know how to mitigate this problem?
We're using Nightmare in our backend server to convert some pages that feature canvas-based charts to PDF. This works fine for typical HTML content, but the canvas-based charts always stick out of their respective containers. Here's a screenshot of what it looks like:
The white area is the margin. I'm not sure if this is something people working on Nightmare can fix, as I've observed similar behaviour trying to convert one of those pages to PDF using Vivaldi (the browser) and its "print to pdf" feature. Would you happen to know how to mitigate this problem?