如何在Flutter中压缩PDF? [英] How do i compress a PDF in Flutter?

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

问题描述

我为我的大学构建了一个应用程序,学生可以在其中访问PDF格式的文档,例如笔记,试卷等.

I built an app for my university where students can access documents such as notes, question papers etc. in PDF format.

我在后端使用Firebase Storage.我想在客户端压缩PDF文件.我想到使用ilovepdf.com的API,但我无法做到这一点.无论如何有飞镖吗?有任何包装吗?

I am using Firebase Storage for the back-end. I want to compress the PDF files client side. I thought of using ilovepdf.com's API but i'm not able to do that. Is there anyway to do that in dart? any package in flutter?

如果有人可以帮助,那将是很好.谢谢.

Would be great if someone could help. Thanks.

推荐答案

您可以使用任何文件压缩方法,而不仅限于PDF压缩方法.您可以使用具有多个压缩选项的存档包.

You can use any file compression method, not just those specific to PDF. You could use the archive package, which has multiple compression options.

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

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