Closed minump closed 7 months ago
Instead of reverting the change, pdf input file is rendered using an iframe https://github.com/clowder-framework/CONSORT-frontend/pull/69 Closing this issue.
https://stackoverflow.com/questions/55371402/how-to-reference-pdf-js-library-in-react - this pdfJS implementation worked. Need to figure out page navigation.
Closing as this is resolved in https://github.com/clowder-framework/CONSORT-frontend/pull/74
The react-pdf package is used in previewers/Pdf.js component to render pdf. Currently, this renders only the first page of the pdf. The page navigation is broken. Revert this change to display the html rendering (_predicted.html file) as before. Rendering using previewers/Pdf.js is implemented in branch https://github.com/clowder-framework/CONSORT-frontend/tree/61-render-pdfjs.
Once reverted to rendering of html page, merge to main to reflect the change.