summaryrefslogtreecommitdiff
path: root/platform/java/src/com/artifex
AgeCommit message (Collapse)Author
2017-01-17java: Simplify loadLibrary call.Tor Andersson
Always look in order for the following libraries: mupdf_java64 mupdf_java32 mupdf_java
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-11-16pdf: Add 'compressed/raw' flag to pdf_add_stream.Tor Andersson
Also expose the argument to JS and JNI.
2016-11-15Fix Java 32/64bit detection.Robin Watts
Fix some java typos. Thanks to Fred for nicely pointing out that I'd been testing the wrong build. Also, make us default to 32bit if sun.arch.data.model is not defined, as Android doesn't set this. We will need to find a nice way to spot 32/64 bittedness on Android.
2016-11-15Update JNI code to load 32 or 64 bit DLL as appropriate.Robin Watts
Make the JNI code detect whether it is running on a 32 or 64 bit machine, and change the name of the DLL appropriately. Update Android Makefile to make mupdf_java32 instead of mupdf_java. Update Java Makefile to make mupdf_java32 or mupdf_java64 based on the system it is running on. This choice can be overruled by defining BITS to be "32" or "64" before calling make. Update Windows Solution to make mupdf_java32 or mupdf_java64 as appropriate.
2016-11-08Change access to protected on parts of Image.java to allow AndroidImage to ↵fred ross-perry
build.
2016-11-03jni: Make it easy to use stext without options.Sebastian Rasmussen
2016-11-02jni: Add AndroidImage, using Android Bitmaps to create Images.Sebastian Rasmussen
2016-10-26Update ios/android to use new way of passion stext options.Sebastian Rasmussen
In addition, make all callers passing 0 as a point pass NULL instead.
2016-09-23JNI: Rework conversion functions and nulls.Robin Watts
Java has a convention that 'toString' should return a printable version of an object. We cannot both support this, and support a sane naming of functions to interpret pdf objects that begins with 'to'. Instead use 'as'. This means we have 'asBoolean', 'asInteger', 'asString' which expect to work just on pdf objects of the required type. 'toString' continues to work on all types and gives a printable version. We split 'toByteString' into 2 separate functions, one for acting on strings (asByteString) and one for acting on names (asByteName) more nicely mirroring the C level functions (pdf_to_string and pdf_to_name). For simplicity of use, we add asString and asName functions that return using java Strings rather than byte arrays. There are potential encoding issues with these, but then there are throughout our string handling at the moment, so we will deal with those in a followup commit. We also update the internal workings of several functions so that they never return NULL pointers, but rather return the null object. To avoid repeatedly creating new null objects we introduce a global static PDFObject.Null object. This is important as we want get("SomethingNonexistent") to return a valid java object, so we can safely do things like: get("Foo").get("Bar").get("Baz").asInteger() without having to error check at every stage. Update DocViewActivity to call the new versions.
2016-09-23Clean up annotation enum names.Tor Andersson
Put them in the PDF name space and separate words with underscores. Remove redundant namespace prefixes in java constants. Device.FLAG_MASK rather than Device.FZ_DEVFLAG_MASK. Use namespace for PDF annotation flag enum.
2016-09-15JNI: Ensure that BufferInputStream position is in range.Sebastian Rasmussen
2016-09-15JNI: Rename member variable to fit with usage.Sebastian Rasmussen
Page_getSeparation() does the corresponding conversion.
2016-09-14Android example - Add proofing support.fred ross-perry
2016-09-08Add options to control heuristics in structured text.Sebastian Rasmussen
2016-09-08JNI: 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-01JNI: Support size() and push() for arrays.Sebastian Rasmussen
2016-09-01JNI: Remove unused nativeAnnots/-Links.Sebastian Rasmussen
2016-08-19Java - change contains() in Rect and RectI to properly handle empty rects.Fred Ross-Perry
2016-08-16Java/JNI - add TextChar.isWhitespacefredross-perry
2016-08-16Android java - ad textAsHtml() to the Page class.fred ross-perry
The JNI implementation is taken from core.textAsHtml() in the old viewer.
2016-08-16Java/JNI - Add empty ctor and union method to Rect and RectI.fred ross-perry
2016-08-15JNI: BufferOutputStream should only be used for writing.Sebastian Rasmussen
2016-08-08Java/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-08android java - add "contains" function to Rect.fred ross-perry
2016-08-02JNI: 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-02JNI: Put all Pixmap.clear() in a single location.Sebastian Rasmussen
2016-07-20JNI: Add PDFDocument methods for grafting objects onto documents.Sebastian Rasmussen
2016-07-20JNI: Add DisplayList.toStructuredText().Sebastian Rasmussen
2016-07-20JNI: Implement PDFOBject.write*() methods.Sebastian Rasmussen
2016-07-20JNI: Declare methods for internal use private.Sebastian Rasmussen
2016-07-18JNI: Fix typo in Pixmap.getSample() interface.Sebastian Rasmussen
2016-07-17JNI: Implement document Outline.Sebastian Rasmussen
2016-07-17JNI: Implement Link for hyperlinks in document.Sebastian Rasmussen
2016-07-17JNI: When adding stream/page contents, accept String.Sebastian Rasmussen
This is for easy of use, in addition to accepting Buffer.
2016-07-17JNI: 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-17JNI: Extend Buffer interface, especially for reading.Sebastian Rasmussen
2016-07-17JNI: Cleanup of Annotation and PDFObject_toByteString.Sebastian Rasmussen
2016-07-15java - move fitz sources into a 'src' subfolder.fred ross-perry