android mupdf, draw figure on the pdf page without using annotaion - android

How I can draw line or figure on pdf page without using annotation. If mupdf does not have this function then maybe other library you can advise.
Thanks.

Some of the source code files for PDF viewer in Android application. Check the links and try it:
http://code.google.com/p/apv/source/browse/
http://code.google.com/p/android-pdf/
http://code.google.com/p/droidreader/
http://andpdf.sourceforge.net/

Related

Android: How to add svg vector image to PDF using iText given Batik cannot work in Android

I have come across various examples of adding svg to PDF using iText and Apache Batik but, Batik uses Graphics2D which is not supported in Android. Please help me resolve this. How can I add svg image to PDF via iText in Android.
If you know of any alternatives to svg or iText library for adding a vector to PDF considering limited java packages available in Android do let me know.
Thanks in advance.

mupdf library / classes usage pains -- Android

After going through a lot of trouble (and pain) to get the mupdf library files (StaticLibrary : libmupdfthirdparty.a, SharedLibrary : libmupdf.so)
I was prepared to begin using it to browse pdf files. At this stage I only need to display a specific pages from a pdf file.
Some info on the net suggest that I should go through a lot of steps (see answer #7 on Integrate MuPDF Reader in an app).
But these steps seem to be such a cumbersome and fruitless way to go about incorporating a library or third party software into a project. It just seems so dumb.
Are these steps really necessary?
Furthermore, there is so little info on the usage of the library itself... There is a simple example in C code in the mupdf project with a function
render(...). This is a good example; but I do know how access it in Android code.
I need to be able to use the functions in the mupdf library in a simple manner; initially to display a specific page of a pdf file
How can I use this library/ where do I find info on its usage?
Thank you.

epub 3 + android + parser + how to

My next project is writting an Android application that would support reading EPUB version 3 files.
I wont be able to use any libraries (that would support this) since i need to write everything from scratch and i cant find any good "starting point" of how to read epub files, how to show them in webview and so on.
So are there any tutorials or how to parse through this epub 3 format and show them in webview
in android.
Any help would be appreciated.
Thank you
I suggest breaking down the problem into smaller pieces that you can research individually:
EPUB uses zip as its container, so you'll need a way to read zip files. If you can't use a library for this, then you could roll your own unzip code. (Example)
Parsing EPUB. If you can't use a third-party library, then you'll need to read the source code for an EPUB library, learn the algorithm(s), and then implement them yourself. The format is based on XHTML, CSS, etc., and should be straightforward to display in a WebView once you understand the layout of the files.
Display the output in a WebView. You can either point the WebView at a local file or pass the markup for a given page directly using WebView.loadData().

Convert doc file to html using Apache Poi

I am working on an android application in which i need to convert MS office files to HTML using Apache Poi.
Till now i am able to convert .xlsx to htm using the following project Source-
http://display-msoffice-docs-android-with-apache-poi.googlecode.com/svn/trunk/TestOfficeAndroid/
i can see that there is a WordToHtmlConverter class in org.apache.poi.hwpf.converter package which can convert .doc file in its main method as its main() method takes the input file path and output file path as argument.
But when i invoke the main method of WordToHtmlConverter, it gives classnotfound exception exception for java.rmi.unexpectedexception.
There is no java.rmi.unexpectedexception class for android.
How can i overcome this problem.
Any help or guidance will be appreciated.
Have you tried Docx4j? I don't know if it's the answer for you, because I've only just started working with it. (I came across your question as I was looking on Stackoverflow to see if anyone had been using it to create HTML5, which I think should be fairly easy to do)

Can a custom metadata be added to an image in Android?

Is it possible to write custom metadata to an JPG image using Android SDK or some 3rd party lib , and extracting it afterwards? If it is, is there any simple solution?
Thank you very much in advance
Android includes an ExifInterface, but also you could check out Commons Sanselan

Categories

Resources