gpt4 book ai didi

dart - 如何在 Flutter 中将 pdf 转换为文本?

转载 作者:IT王子 更新时间:2023-10-29 06:51:31 27 4
gpt4 key购买 nike

我想阅读用户给定的 PDF 文件。将其转换为文本。但它应该适用于 Android 和 iOS。

最佳答案

这是一个复杂的话题,我只能给你提示。

没有为此的 Dart 库。您可以在 iOS/Android 上原生实现它并使用平台 channel 与原生代码通信,或者使用在线服务进行转换。

例如,您可以在 Firebase Cloud Functions 中使用 Ghostscript。 Ghostscript 能够将 pdf 转换为文本。

  1. How to extract text with Ghostscript
  2. How to use Ghostscript in Firebase Cloud Functions
  3. How to use Firebase Cloud Functions in Flutter

关于dart - 如何在 Flutter 中将 pdf 转换为文本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53015933/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com