Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-09-01 | JNI: Check for exceptions after calling method. | Sebastian Rasmussen | |
The return value from CallObjectMethod() is not valid if an exception is thrown, so check for exceptions before looking at the return value. Mentioned at http://developer.android.com/training/articles/perf-jni.html | |||
2016-09-01 | JNI: Use short form of NULL checks. | Sebastian Rasmussen | |
2016-09-01 | JNI: Use jboolean/JNI_TRUE/JNI_FALSE everywhere. | Sebastian Rasmussen | |
2016-09-01 | JNI: Whitespace/comment/error message cleanup. | Sebastian Rasmussen | |
2016-09-01 | JNI: Remove unused nativeAnnots/-Links. | Sebastian Rasmussen | |
2016-09-01 | JNI: Remove unused variables and cast byte array region. | Sebastian Rasmussen | |
Fixes two compiler warnings. | |||
2016-09-01 | JNI: Update to new pdf_load_stream interface. | Sebastian Rasmussen | |
2016-08-23 | Java - correct the JNI signatures for bbox fields in StructuredText inner ↵ | Fred Ross-Perry | |
classes. | |||
2016-08-19 | Java - change contains() in Rect and RectI to properly handle empty rects. | Fred Ross-Perry | |
2016-08-16 | Java/JNI - add TextChar.isWhitespace | fredross-perry | |
2016-08-16 | Android java - ad textAsHtml() to the Page class. | fred ross-perry | |
The JNI implementation is taken from core.textAsHtml() in the old viewer. | |||
2016-08-16 | Java/JNI - Add empty ctor and union method to Rect and RectI. | fred ross-perry | |
2016-08-16 | JNI: Add finalizers for Shade and PDFGraftMap. | Sebastian Rasmussen | |
2016-08-15 | JNI: BufferOutputStream should only be used for writing. | Sebastian Rasmussen | |
2016-08-08 | Java/JNI: Added blocks/lines/spans/chars to StructuredText. | fred ross-perry | |
added TextBlock, TextLine, TextSpan and TextChar inner classes to StructuredText. Calling StructuredText.getBlocks() returns an array of TextBlocks, which in turn contains an array of TextLines, etc. | |||
2016-08-08 | android java - add "contains" function to Rect. | fred ross-perry | |
2016-08-07 | JNI: Only store links/annotations if all are successfully handled. | Sebastian Rasmussen | |
2016-08-02 | JNI: Add/change PDFDocument.save() related methods. | Sebastian Rasmussen | |
Added methods: * PDFDocument.hasUnsavedChanges() * PDFDocument.canBeSavedIncrementally() The interface for PDFDocument.save() now returns the number of errors encountered while saving. | |||
2016-08-02 | JNI: Delete forgotten global references to classes. | Sebastian Rasmussen | |
2016-08-02 | JNI: Put all Pixmap.clear() in a single location. | Sebastian Rasmussen | |
2016-07-20 | JNI: Add PDFDocument methods for grafting objects onto documents. | Sebastian Rasmussen | |
2016-07-20 | JNI: Add DisplayList.toStructuredText(). | Sebastian Rasmussen | |
2016-07-20 | JNI: Implement PDFOBject.write*() methods. | Sebastian Rasmussen | |
2016-07-20 | JNI: fz_var()/return to make behavior correct upon fz_throw(). | Sebastian Rasmussen | |
Previously in many instances the code was allowed to continue after running jni_rethrow() or jni_throw(). When doing so it used variables whose values may have changed inside fz_try(). Those variables must in that case be declared using fz_var(). Another way of avoiding this from happening (and thus having to use fz_var()) is to return from the function immediately after jni_rethrow()/jni_throw(). All remaining occurrances where this is not possible still needs fz_var(). The code is now changed so that it either uses fz_var() or returns early to avoid using variables that have not been declared using fz_var(). | |||
2016-07-20 | JNI: Check more JNI arguments for null. | Sebastian Rasmussen | |
2016-07-20 | JNI: Declare methods for internal use private. | Sebastian Rasmussen | |
2016-07-19 | JNI: Fix local ref leaks in methods using object arrays. | Robin Watts | |
Would be fine were it not for the finite number of local refs we are allowed. | |||
2016-07-19 | JNI: Fix bug in Document.loadOutline. | Sebastian Rasmussen | |
Previously an exception was thrown for documents without an outline. Now document both with and without an outline are handled correctly. | |||
2016-07-18 | JNI: Fix typo in Pixmap.getSample() interface. | Sebastian Rasmussen | |
2016-07-17 | JNI: Implement document Outline. | Sebastian Rasmussen | |
2016-07-17 | JNI: Implement Link for hyperlinks in document. | Sebastian Rasmussen | |
2016-07-17 | JNI: When adding stream/page contents, accept String. | Sebastian Rasmussen | |
This is for easy of use, in addition to accepting Buffer. | |||
2016-07-17 | JNI: Validate that page indicies are always positive. | Sebastian Rasmussen | |
2016-07-17 | JNI: Add BufferInputStream, BufferOutputStream. | Sebastian Rasmussen | |
These are meant to make it easy to interact with mupdf's Buffer object in a normal Java fashion. | |||
2016-07-17 | JNI: Extend Buffer interface, especially for reading. | Sebastian Rasmussen | |
2016-07-17 | JNI: Cleanup of Annotation and PDFObject_toByteString. | Sebastian Rasmussen | |
2016-07-15 | android desktop view - add a button to toggle annotations on/off. | fred ross-perry | |
2016-07-15 | java - move fitz sources into a 'src' subfolder. | fred ross-perry | |
2016-07-15 | Support changing reflowable font size in JNI sample viewer. | Sebastian Rasmussen | |
Also fix bug in sample java viewer where zoom caused an Exception. | |||
2016-07-15 | Adding missing JNI interfaces. | Sebastian Rasmussen | |
Some objects get their interfaces expanded or the entire object is added both corresponding to what was already present in the mujs interface. Some interfaces, e.g. Buffer.writeLines() has been adapted to suit Java. | |||
2016-07-15 | Cleanup 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-14 | Fix whitespace and indentation. | Tor Andersson | |
2016-07-12 | Android JNI Annotation fix. | Robin Watts | |
We pass pointers from the JNI layer into the java to be stored as java longs. When doing this it is VITAL that we cast them correctly as otherwise the JNI layer on android has problems - presumably because of alignment in the procedure calling standard. I'd missed this in one place. Fixed here. <log></log> | |||
2016-07-11 | Java desktop example: detect retina and scale accordingly | fredrossperry | |
also: zoom in/out buttons | |||
2016-07-11 | android desktop viewer: scale the page box before making the pixmap in ↵ | fred ross-perry | |
imageFromPageWithDevice | |||
2016-07-11 | JNI: Fix annotation crashing problem. | Robin Watts | |
I was forgetting to 'keep' the annot. Inspection of the code shows just 1 other place where I've made that mistake, and it's currently disabled (but updated here anyway). | |||
2016-07-11 | MSVC: Add DebugJava/ReleaseJava configurations. | Robin Watts | |
These build the mupdf desktop java viewer. | |||
2016-07-11 | Update mupdf_native.c for Windows. | Robin Watts | |
Use Windows threads rather than pthreads when building on windows. | |||
2016-07-08 | git stripspace | Tor Andersson | |
2016-07-08 | Separate close and drop functionality for devices and writers. | Tor Andersson | |
Closing a device or writer may throw exceptions, but much of the foreign language bindings (JNI and JS) depend on drop to never throw an exception (exceptions in finalizers are bad). |