I'm trying to add text selection in PDFJS using the method renderTextLayer
.
Base from this you need to add ui_util.js
, though I'm not sure how to add it in an existing Angular 4 Typescript project.
I tried adding it in angular-cli.json
like below
"scripts": [
"../node_modules/pdfjs-dist/lib/web/ui_utils.js"
]
But it doesn't seem to work. Any help will be highly appreciated.
Thanks