Android - 如何将 html 转换为 pdf?

标签 android html pdf

<分区>

Possible Duplicate:
How to create PDFs in Android SDK?

我的 android 应用程序中有一个 html 文件,我想将其保存为 pdf 格式?请告诉我该怎么做?

最佳答案

直接取自另一个 SO 帖子 How to create PDFs in an Android app? :

if anyone wants to generate PDFs on Android device, here is how to do it:

http://sourceforge.net/projects/itext/ (library)

http://www.vogella.de/articles/JavaPDF/article.html (tutorial)

http://tutorials.jenkov.com/java-itext/image.html (images tutorial)

根据来自 SourceForge 的用户评论和此解决方案下方的评论,iText 库发生了很大变化。我强烈建议对这个建议持保留态度,并敦促您仔细阅读重复答案中提供的解决方案:

How to create PDFs in an Android app?

关于Android - 如何将 html 转换为 pdf?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8669083/

相关文章:

android - 编译 ARM64 android 内核时出错

android - 无法在 AsyncTask 中设置 SharedPreferences?

html - 标题视频上的向下 Angular 图标

html - 如何处理此类错误?

Android:如何将 imageView 设置为谷歌地图 API android 中的标记?

android - 命名空间在 Android Studio 中未绑定(bind)

html - 如何从服务器使用 font-awesome

php - Codeigniter 查看 PDF

ios - 在pdf iOS 5上方绘制图像

php - 如何创建下载后将从数据库中删除的文件下载