how to convert html to pdf?
Possible Duplicate:
How to create PDFs in Android SDK?
I have an html file in my android application, which I want to save in pdf format? Please let me know how to do it?
Taken directly from another SO post 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)
According to user comments from SourceForge and the comment below this solution, the iText library has changed quite a bit. I strongly recommend taking this advice with a grain of salt, and urge you to go through the solutions provided in the duplicate answer:
How to create PDFs in an Android app?
链接地址: http://www.djcxy.com/p/56920.html上一篇: 如何在Capybara上使用测试数据库?
下一篇: 如何将HTML转换为PDF?