I want to convert a html file to PDF
https://github.com/bullda/DroidText
I used this tutorial
http://karanbalkar.com/2013/05/tutorial-22-generate-pdf-using-droidtext-in-android/
And I can generate simple paragraphs.
I've looked over this library and found that there are some tools for HTML parsing
But I can't figure out how to do this.
Related
I'm trying to draw my html formatted string into a pdf file for my android app, but the result is just the non formatted string with all the html tags visible.
Is there a way I can properly format the pdf file without using any external libraries? I can't use any for the app.
Or is there a way to convert an html file to a pdf file?
Is there a way I can properly format the pdf file without using any external libraries?
Not in any practical sense. If you have a large team or lots of time in which to write your app, you are welcome to write your own PDF generation code, as yms suggests in a comment.
Note that API Level 19+ has some HTML->PDF code in it, for the use in the printing framework, but it is not designed for generating arbitrary PDF files.
I can't use any for the app.
Then you cannot write any apps for Android, as every Android app involves libraries. The Android SDK is a library, for example.
Recently i am working with reading excel file and need to show it on android view.
I have even tried with both the java libraries say apache poi and jexcel api which helps
in parsing excel sheet in java but failed to parse in android when i tried.
I am even tried with converting excel to xml,than parse the xml and show the contents
on android view but for this i have needed convertor which converts .xls to .xml.
Can anybody help me in parsing excel file in android.
Thanks And Regards
Pinkesh Gupta
jxl can be used in Android but it only supports xls format not xlsx.
While poi supports both. But when used in Android, you can only read xls file using HSSFWorkbook. For reading xlsx file you need XSSFWorkbook, but there is a issue when using XSSFWorkbook in Android (see this).
I see on this post that Batik is the way to open SVG files with Android: svg files rendering in android
But in the post is not explained how to integrate batik with android.
Someone know how to use Batik with Android to open and show SVG files?
thanks
I need to check if a Richmedia content (video embedded in a pdf file) is available in a pdf file or not via mupdf library for an android application.
If it is then I need to retrieve the stream content via pdf parsing and convert in to a byte array and run the video found in the pdf.
Is this possible?
MuPDF does not support embedded video. You can still use the library to examine the PDF object structure and extract data streams from PDF files. Look at the "pdfshow" and "pdfextract" tools for inspiration.
You could try using iText for android, although it seems to be a constrained version. There is a post on how to extract media objects from pdf files with iText here.
Some of the members says that the iText library is only for creating a PDF document,we cant read the PDF document using iText library.Is that true?
i think u can use itext library for reading also, but the problem is that u cant have tables & images or format of pdf pages i.e. only text can be read