【发布时间】:2018-05-19 23:31:06
【问题描述】:
我正在尝试使用 renderTextLayer 方法在 PDFJS 中添加文本选择。
来自this 的基础,您需要添加ui_util.js,虽然我不确定如何在现有的 Angular 4 Typescript 项目中添加它。
我尝试在angular-cli.json 中添加它,如下所示
"scripts": [
"../node_modules/pdfjs-dist/lib/web/ui_utils.js"
]
但它似乎不起作用。任何帮助将不胜感激。
谢谢
【问题讨论】:
标签: angular typescript webpack pdfjs