ivmarcos / react-to-pdf

Generate pdf from react components
MIT License
282 stars 62 forks source link

2 Pages showing in the downloaded PDF(unwanted 2nd page) #131

Closed DavOlufuwa closed 5 months ago

DavOlufuwa commented 5 months ago

Please my entire component is in a single page and I only want to download that page. I followed the codepen example and I am seeing a second blank empty page as part of the downloaded PDF file. Please help. Your work has saved me a great load of stress.

DavOlufuwa commented 5 months ago

I fixed it, I padded the top and bottom of the element to be converted to PDF, the margin property of the page then pushed into the second page.