如何在Flutter中将pdf转换为文本? [英] How to convert pdf to text in Flutter?

查看:139
本文介绍了如何在Flutter中将pdf转换为文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想阅读用户给定的PDF文件。将其转换为文本。

I want to read user given PDF file. Convert it into text. But it should work both on android and iOS.

推荐答案

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

This is a complex topic and I can only give you hints.

没有用于此的飞镖库。您既可以在iOS / Android上本地实现它,并使用平台渠道与本机代码进行通信,也可以使用在线服务进行转换。

There are no dart libraries for this. You can either implement it natively on iOS/Android and use platform channels to communicate with the native code, or use an online service for the conversion.

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

For example, you can use Ghostscript in Firebase Cloud Functions. Ghostscript is capable of pdf to text conversion.


  1. 如何使用Ghostscript提取文本

  2. 如何在Firebase Cloud Functions中使用Ghostscript

  3. 如何在Flutter中使用Firebase Cloud函数

  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

这篇关于如何在Flutter中将pdf转换为文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆