我已经实现了一个应用程序,用相机捕捉图像,并在新页面中将捕获的图像显示为图像,但我希望将捕获的图像(例如:文档)显示为Pdf文件(可编辑)。
那么,我如何将我的图像(例如:文档)转换为一个pdf文件?
class DisplayPictureScreen extends StatelessWidget {
final String imagePath;
const DisplayPictureScreen({Key key, this.imagePath}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text('Display the Picture')),
body: Image.file(File(imagePath)),
);
}
}发布于 2020-05-29 17:18:49
这个颤振打印库谈到了To load an image from an ImageProvider: --也许这可以按您的要求来做,您可以在它处理图像之后提取PDF
https://stackoverflow.com/questions/62091269
复制相似问题