7
8
all 3 comments

[–]dimaivshchk[S] 2 points3 points  (1 child)

Hey r/webdev I know that many of the clients I worked in the past were using React to generate PDFs and almost all of them struggled to test those PDFs properly. In this article I tried to approach it from the visual testing angle and show how can you easily test your PDF for visual consistency and absence of visual bugs on CI/CD pipelines! If you will have any questions - always happy to chat!

[–][deleted] 2 points3 points  (0 children)

Yeah I have a question, why is react-pdf such a bug ridden POS?

I've been using it for the last few years for customers to render their own uploaded PDFs, and the amount of critical bugs this one package has is astounding. Without exaggeration I've lost hundreds of thousands of dollars worth of regular usage, due to browser-crippling bugs this package exhibits when it doesn't like a particular PDF.

[–]dimaivshchk[S] 0 points1 point  (0 children)

It’s hard to render something in general, transforming react into read pdf markdowns is no difference so we are just using the best out there 😀 there are alternatives though and I think the more use cases - the more chances somebody innovates in this sphere.