<分区>
Possible Duplicate:
How to create PDFs in Android SDK?
我的 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 库发生了很大变化。我强烈建议对这个建议持保留态度,并敦促您仔细阅读重复答案中提供的解决方案:
关于Android - 如何将 html 转换为 pdf?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8669083/