clowder-framework / CONSORT-frontend

custom react frontend working with consort clowder instance
0 stars 0 forks source link

Revert pdf file preview #64

Closed minump closed 7 months ago

minump commented 10 months ago

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.

minump commented 10 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.

minump commented 10 months ago

https://stackoverflow.com/questions/55371402/how-to-reference-pdf-js-library-in-react - this pdfJS implementation worked. Need to figure out page navigation.

minump commented 7 months ago

Closing as this is resolved in https://github.com/clowder-framework/CONSORT-frontend/pull/74