需要在React中获取,分析和渲染PDF文件

发布于 2025-02-13 23:54:08 字数 151 浏览 0 评论 0原文

我正在尝试从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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

握住我的手 2025-02-20 23:54:09

您可以使用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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文