clowder-framework / CONSORT-frontend

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

64 pdf file preview pdfjs #71

Closed minump closed 7 months ago

minump commented 10 months ago

PDFjs library is used to render Pdf file in previewers. It is rendered using canvas. The PdfJS lib renderes each page one by one. A page navigation is implemented (buttons below the canvas). Majority of the code is taken from https://stackoverflow.com/questions/55371402/how-to-reference-pdf-js-library-in-react

Fixes : #64

Screenshot 2023-11-12 at 4 41 56 PM

minump commented 9 months ago

React-pdf package will be used instead of PDFjs as canvas can be rendered using react-pdf package. Converting this to draft PR. Will close this once rendering using react-pdf is finalized

minump commented 7 months ago

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