diegomura/react-pdf ? reverse-engineered prompt
Reverse engineered prompt
Build me a React based PDF generator that lets me create PDF documents from components, both in the browser and on the server.
I want to be able to define pages, text, and layout blocks with simple styles, then preview the result in the app and also save it as a PDF file. The layout should feel natural, with flexible rows and columns, spacing, padding, background colors, and multiple sections on a page. Please include a simple example document so I can see how to use it right away, and make sure it can render a PDF viewer in the browser or write the PDF to a file in Node.
If you need to check any current docs or best practices while building it, go ahead and look them up online.
Are you gonna build this?
make sure you review the code using coderabbit