react-to-pdf icon indicating copy to clipboard operation
react-to-pdf copied to clipboard

Pdf not rendering as my webpage (Using TailwindCSS)

Open mimo-lbp opened this issue 1 year ago • 3 comments

Hello, i wanted to use your beautifull library to convert my react components to pdf but with TailwindCSS i encoutered an "bug".

In fact, there is a form in my app : image

And when i click on "Generate PDF in the top left" with this config :

const options: Options = { filename: "using-function.pdf", resolution: Resolution.HIGH, method: "open", page: { margin: Margin.SMALL, format: "letter", }, };

My pdf i looking like this image

Any people already encoutered this "bug" ? I tried to set preflight in my tailwind.config at false and it worked properly but couldnt use Tailwind in my project image

mimo-lbp avatar Nov 22 '23 09:11 mimo-lbp