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

How to preview / test / debug the transformed components

Open mtmacdonald opened this issue 6 months ago • 2 comments

Thanks for the great package. I have a question that wasn't obvious to me from reading the docs.

How can I preview / test / debug the transformed elements (e.g. to help me debug styles)?

I am able to use <PDFViewer> from react-pdf to view the output PDF. But I want a way to see which react-pdf components were generated by this package for any given input HTML. Something similar to the code view in react-pdf.org/repl is what I'm after, but showing the generated code from this package.

Is that possible?

mtmacdonald avatar Aug 12 '24 18:08 mtmacdonald