'react-pdf/renderer IE takes very long time to generate blob to download pdf
async function saveBlob() {
const doc = <TableDocument/>;
const asPdf = pdf([]);
await asPdf.updateContainer(doc);
const blob = await asPdf.toBlob();
saveAs(blob, 'instructions.pdf');
}
return (
<IconButton
onClick={() => saveBlob()}>
</IconButton>
);
This is how I am trying to generate my pdf doc by getting blob and then download it. I am doing all things at client side only using reactJS.
On Chrome and Edge browsers it takes 3-4 seconds only but on IE it takes around 30-40 seconds. Its a 3 page pdf doc with simple table (For single page IE takes around 8-9 seconds).
And even after using async await it blocks the UI. Any help to reduce time to generate pdf on IE will be highly appreciated.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
