summaryrefslogtreecommitdiff
path: root/platform/java/example
AgeCommit message (Collapse)Author
2017-11-22jni/js: Add support for annotation modification dates.Sebastian Rasmussen
2017-04-13Export fz_recognize_document and use it in java code.Sebastian Rasmussen
2017-02-14java: Make PDFDocument a subclass of Document.Tor Andersson
Requires use of Document.openDocument(path) to open a document. No more new Document(path) since we may need to return a PDFDocument. Create a new blank PDF with new PDFDocument() constructor.
2017-02-06Add bookmarks so we can find a location after reflowing a document.Tor Andersson
2017-01-17java: Add text searching.Tor Andersson
2017-01-17java: Call dispose() instead of System.exit() when closing the window.Tor Andersson
2017-01-09java: Clean up and simplify example viewer.Tor Andersson
Don't pull in swing classes for simple desktop AWT viewer. Use inner classes for helper classes. Add list of zoom levels. Add table of content list. Make page canvas flicker free.
2016-07-15android desktop view - add a button to toggle annotations on/off.fred ross-perry
2016-07-15Support changing reflowable font size in JNI sample viewer.Sebastian Rasmussen
Also fix bug in sample java viewer where zoom caused an Exception.
2016-07-15Cleanup of JNI code for consistency.Sebastian Rasmussen
* Make sure that arguments are checked for NULL before being passed to ->Get JNI-functions (as these may crash on NULL). * Remove unused argument to from_Device(). * Consistently use jint and jfloat in JNIEXPORTed functions. * Check ctx for NULL in all relevant functions. * Throw Java exception when constructors fail. * to_*_safe() means that the function doesn't fz_throw(). * to_*_own() means that the function takes ownership of the object. * Make sure that jprefixing of argument identifies does not clash with jprefixing of types, specifically jstring. * Rename (j)colorspace -> (j)cs, (j)shade -> (j)shd, (j)device -> (j)dev. * Always check that the context is available in bindings. * Always check that required arguments are non-NULL or have decent default values (e.g. for fz_matrix and fz_rect).
2016-07-14Fix whitespace and indentation.Tor Andersson
2016-07-11Java desktop example: detect retina and scale accordinglyfredrossperry
also: zoom in/out buttons
2016-07-11android desktop viewer: scale the page box before making the pixmap in ↵fred ross-perry
imageFromPageWithDevice
2016-06-23Update JNI code. Take explicit alpha argument in toPixmap functions.Tor Andersson
2016-03-31Reorganize java and android source.Tor Andersson
platform/java and platform/android are reorganized: platform/java The new JNI Java classes, mupdf_native.{c,h}, Makefile and Makejar. platform/java/example The example desktop viewer classes. platform/android/viewer The original demo viewer. ndk-build is used to build libmupdf_java.so, making reference to mupdf_native.{c,h} in platform/java.