Pdf2text extractor and rct-transparency-extractor updates the dataset metadata. This PR gets the correct metadata required. Checks if rct-extractor metadata is required or pdf-extractor metadata is required.
This PR also renders PDF input file (user uploaded manuscript) using rect-pdf npm package. This uses PDFjs under the hood. PDFjs rendering (in the "/preview" route) needs some more work. The styling is off and page navigation does not work. This will be fixed in another issue.
If the input file (user uploaded manuscript) is plain text file, the previously used html iframe is displayed in the "/preview" route.
The PR uses extractors-pdf2text:0.7.0 and rct-transparency-extractor:0.9 from hub.ncsa.illinois.edu/clowder
Pdf2text extractor and rct-transparency-extractor updates the dataset metadata. This PR gets the correct metadata required. Checks if rct-extractor metadata is required or pdf-extractor metadata is required.
This PR also renders PDF input file (user uploaded manuscript) using rect-pdf npm package. This uses PDFjs under the hood. PDFjs rendering (in the "/preview" route) needs some more work. The styling is off and page navigation does not work. This will be fixed in another issue.
If the input file (user uploaded manuscript) is plain text file, the previously used html iframe is displayed in the "/preview" route.
The PR uses extractors-pdf2text:0.7.0 and rct-transparency-extractor:0.9 from hub.ncsa.illinois.edu/clowder