Closed minump closed 7 months ago
This branch has pdf preview component using react-pdf branch. Page highlights (with canvas( is working with page navigation. Canvas highlights can be done for multiple bounding boxes read from metadata.
Sentence highlights are working as expected. Canvas is used with react-pdf npm package. The frontend reads the metadata.json file which contains the sentence coordinates, and page dimensions. Highlights are rendered using these information.
Pushed to hub.ncsa.illinois.edu/clowder/consort-frontend:0.3.0
Deployed and tested in https://consort.clowderframework.org/preview/ Merging to main.
Pdf rendering using react-pdf Has access to canvas using UseRef method. There is commented out code for AllenAI pdf-component-library.