需要在React中获取,分析和渲染PDF文件
我正在尝试从URL 渲染PDF文件。然后,我需要分析PDF(识别上文本),然后需要向我的React应用程序中的用户展示页面(段意味着我也需要进行一些裁切,可能会使用我从中获得的坐标和东西我的分析)。
我需要用什么NPM软件包来实现这一目标?
I am trying to render a PDF file from a url. I then need to analyze the PDF (identify text on it) and then need to show a segment of a page to a user in my React application (segment implies I also need to do some cropping, probably using coordinates and stuff which I get from my analysis).
What npm package(s) do I need to use to accomplish this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用PDF-Parse并实际解析文本。裁剪PDF是一件罕见的事情。中页左右。
PDF解析将为您带来很多灵活性,您可以在其中使用其他软件包。
You can use pdf-parse and actually parse the text. Cropping PDFs is a rare thing esp. mid-page or so.
PDF parsing will give you a lot of flexibility and you could use other packages atop of that.