Utkarsh Sharma

Results 2 comments of Utkarsh Sharma

this worked for me - `const { toPDF, targetRef } = usePDF({ filename: "invoice.pdf", overrides: { canvas: { scale: 2, imageTimeout: 15000, }, }, });`

I eventually did it from scratch by using jsPDF and dom-to-image. I am not having any errors now. Also now I have more control over styling and layout.