Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - how to convert html to pdf? [duplicate]

Tags:

html

android

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?

like image 546
user958904 Avatar asked Dec 29 '11 14:12

user958904


People also ask

How do I automatically convert HTML to PDF?

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.

Can we convert HTML to Android app?

You could use App Builder to convert html to android app. App Builder can be easily downloaded at google playstore.


1 Answers

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?

like image 142
TryTryAgain Avatar answered Oct 17 '22 08:10

TryTryAgain