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?
Get the Adobe Acrobat extension on Chrome web store, click the "Add to Chrome" button and it will be installed to the browser. Step 2. Click on the Adobe icon on the toolbar, and select "Convert Web Page To PDF". Then select a location, enter a file name, and click the "Save" button.
You could use App Builder to convert html to android app. App Builder can be easily downloaded at google playstore.
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?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With