I am developing an app in which i am saving some data in book format.
I need to show data in same format or pdf format in mobile. i have read about itextpdf but its too costly for me to use as commercial use..
is there any other way to show data in book format in android app or in pdf format
use iText java jar to make own pdf or use android native api PdfDocument PLease go through the link give below
https://developer.android.com/reference/android/graphics/pdf/PdfDocument.html
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.
I would like to generate a PDF usgin data from my databse to a preset PDF template. The question will be, do you think or is it possible to send data or generate this pdf to a template using Android or do you think it is best to send the data to a server and have the server generate the PDF instead?
I know that Android can generate a PDF, but the bigger question will be can it insert data into a layout template and then generate it?
I need to show the pdf and the word files from the sdcard into the application.
I am looking out for libraries that can be integrated for this.
There are a few which I surfed:
1) Vudroid
2) jBlough
3) apdf and so on...
4) olive (for word)
I need a library which can show both these formats or either of the two.
Secondly, which one would be a better to go with. I was unable to find the libraries apart from the jBlough and olive. Can somebody aid me with few links for these libraries?
Note: I am not looking for implicit intent.
You can use Document Viewer and Converter for Android. It is MIT licensed Android application that can view Microsoft Word, RTF and OpenDocument Text files and convert them to PDF, DOCX, DOC, ODT, RTF and HTML.
The application uses Aspose.Words for Android to process, render and convert the documents and uses some basic Android platform's features to lazy-load and cache page previews.
Disclosure: I am a developer at Aspose.
Check out this library:
http://www.csr.com/products/directoffice-mobile-sdk
It will convert Office and PDF to PNG or PDF. The PNG files are easy to display in your app.
I want to read a PDF in my application so which is the best way for that?
PDF to image convert and show.
direct PDF reads form server using PDF reader.
There are set of libraries and sdk you can use to read pdf in android.
http://www.qoppa.com/android/pdfsdk/
http://code.google.com/p/droidreader/
https://github.com/jblough/Android-Pdf-Viewer-Library
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.