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
I am using react-to-print library in react to print a pdf, then html2pdf library in react to download the pdf. When i print using react-to-print, it prints correctly but when i use html2pdf to download the pdf in client side, the styling gets messed up. some elements are pushed upwards/downwards or added with spaces.
This is the printed image =>
I am using
react-to-print
library in react to print a pdf, thenhtml2pdf
library in react to download the pdf. When i print using react-to-print, it prints correctly but when i use html2pdf to download the pdf in client side, the styling gets messed up. some elements are pushed upwards/downwards or added with spaces.This is the printed image =>
This is the downloaded image =>
the code snippet of what i am using is =>
The text was updated successfully, but these errors were encountered: