Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-09-08 | Add options to control heuristics in structured text. | Sebastian Rasmussen | |
2016-09-08 | Handle too big pixmap by printing error message in X11 viewer. | Sebastian Rasmussen | |
2016-09-08 | JNI: Separating big fz_try()s into smaller scopes. | Sebastian Rasmussen | |
By making the scope smaller fitz exceptions and Java exceptions can be disentangled. This makes it clearer what happens in failure cases. | |||
2016-09-08 | JNI: Remove redundant cleanup. | Sebastian Rasmussen | |
2016-09-08 | JNI: Delete local reference to text span font. | Sebastian Rasmussen | |
If a large number of text spans uses a huge number of fonts the JMV may run out of local references since we never cleaned up the local reference to the font objects. | |||
2016-09-08 | JNI: Copy data back to Java arrays. | Sebastian Rasmussen | |
The Java arrays are the destination when reading from Buffer. | |||
2016-09-08 | JNI: Make sure to keep fitz objects passed to Java objects. | Sebastian Rasmussen | |
2016-09-08 | JNI: Handle errors from AndroidBitmap_unlockPixels(). | Sebastian Rasmussen | |
2016-09-08 | JNI: Move failure testing code outside of fz_try(). | Sebastian Rasmussen | |
2016-09-08 | JNI: Use Android enum for detecting failure. | Sebastian Rasmussen | |
2016-09-08 | JNI: Add a number of new to_*() C to Java conversions. | Sebastian Rasmussen | |
Adding to_Rect_safe(), to_jRectArray_safe(), to_ColorSpace_safe() to_Image_safe() and to_Point_safe() disentangles fitz exceptions from Java exception and also makes the code more uniform. | |||
2016-09-08 | JNI: Handle exceptions from JVM properly. | Sebastian Rasmussen | |
2016-09-08 | JNI: Cosmetic reordering of code. | Sebastian Rasmussen | |
Including removal of unnecessary #ifdef. | |||
2016-09-08 | JNI: Throw OutOfBoundsException for out of range values. | Sebastian Rasmussen | |
2016-09-08 | JNI: Throw IOException when Buffer fails to read/write. | Sebastian Rasmussen | |
2016-09-08 | JNI: Make exceptions unchecked. | Sebastian Rasmussen | |
Previously all exceptions thrown by the library would be converted into checked exceptions, but there was no sensible response to expect from a client. | |||
2016-09-08 | JNI: Check arguments and throw suitable exceptions. | Sebastian Rasmussen | |
2016-09-01 | JNI: Support size() and push() for arrays. | Sebastian Rasmussen | |
2016-09-01 | JNI: Keep arguments before giving them to constructor. | Sebastian Rasmussen | |
The arguments will be freed by the finalizer of the object. The finalizer for an object is called even if the constructor throws an Exception or an OutOfMemoryError. | |||
2016-09-01 | JNI: get_context() may throw error and should be handled separately. | Sebastian Rasmussen | |
2016-09-01 | JNI: Do not check self pointer, it is always valid. | Sebastian Rasmussen | |
If an object reference is NULL the JVM will signal NullPointerException before the JNI-code is executed. | |||
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 | Android example: added text searching. | Fred Ross-Perry | |
2016-08-19 | Java - change contains() in Rect and RectI to properly handle empty rects. | Fred Ross-Perry | |
2016-08-17 | Android example - add first page and last page buttons | Fred Ross-Perry | |
also, change DocPageView to paint a white background before doing anything else. Makes for smoother-looking scrolling. And, re-introduce the slower scrolling (400 msec) when moving between pages. | |||
2016-08-16 | Android example - update gradle version | fredross-perry | |
2016-08-16 | Android example - remove isBlank, start2=afterFirstLayoutComplete, ↵ | fredross-perry | |
ul/dr=upperLeft/lowerRight | |||
2016-08-16 | Java/JNI - add TextChar.isWhitespace | fredross-perry | |
2016-08-16 | Android example - simple implementation of reflow. | fred ross-perry | |
page text (one page at a time) is converted to HTML and shown in a class that extends WebView. | |||
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 | Android viewer: get experimental proofing to build again. | fred ross-perry | |
- use FZ_ENABLE_GPRF everywhere - chasing changed fz APIs in gprf-doc.c | |||
2016-08-16 | Android example: fix initial layout timing issue. | fred ross-perry | |
2016-08-16 | Android example - fix a crash bug by recycling bitmaps between documents. | fred ross-perry | |
2016-08-16 | Android example : improved text selection. | fred ross-perry | |
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 | Android example - collected changes | fred ross-perry | |
- move UI into the "mupdf" module. The app simply sets up a DocView and starts it with a file path. The app can call DocView.showUI to determine whether the built-in UI is used. The plan is for apps to be able to use the built-in UI, or supply their own. Also includes some rudimentary UI for show/hiding annotations, and listing links and outlines. Just for testing JNI features. - add toolbar and tabs at the top of the view. - refactoring DocView becomes DocActivityView, DocViewInner becomes DocView. - add Pages toolbar and page list view. make the page list a little narrower. give the document view and the pages view separate bitmaps, and have DocPageView implement clipping when it draws. - fix tabbing and brace style. - add simple text selection and highlighting. This is still a work in progress. - various code review items. fix tabs and brace styles remove function calls from loop statements use "highlight", not "hilight" put a few strings into resources avoid Right Hand Drift (tm) Rects are inclusive...exclusive for the purpose of testing limits put "else" on a separate line put "catch" and "finally" on separate lines | |||
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 | |