Open giovanniborella opened 4 months ago
https://github.com/mapcentia/vidi/blob/eca81f7eb6029c7750eae3aefef98dfa08055b75/controllers/print.js#L264-L267
When printing with format PNG, we sometimes get decimal numbers in the puppeteer arguments - which results in an error.
We added this before page.emulate:
page.emulate
// Make sure width and height are integers width = Math.round(width); height = Math.round(height);
https://github.com/mapcentia/vidi/blob/eca81f7eb6029c7750eae3aefef98dfa08055b75/controllers/print.js#L264-L267
When printing with format PNG, we sometimes get decimal numbers in the puppeteer arguments - which results in an error.
We added this before
page.emulate
: