summaryrefslogtreecommitdiff
path: root/platform/java
AgeCommit message (Collapse)Author
2017-04-13Export fz_recognize_document and use it in java code.Sebastian Rasmussen
2017-03-28Java fixes.Tor Andersson
2017-03-28Rejig fz_new_device to be fz_new_derived_device.Robin Watts
In keeping with the rest of the code.
2017-03-27Tweak document_writer - don't pass dev back in.Robin Watts
It seems odd for a document writer to pass a device pointer out, and then require it to be passed back in. Hide that in the public API.
2017-03-22Rename fz_putc/puts/printf to fz_write_*.Tor Andersson
Rename fz_write to fz_write_data. Rename fz_write_buffer_* and fz_buffer_printf to fz_append_*. Be consistent in naming: fz_write_* calls write to fz_output. fz_append_* calls append to fz_buffer. Update documentation.
2017-03-22Rename libjpeg submodule.Tor Andersson
2017-03-15Add PDF_ANNOT_UNKNOWN enum.Tor Andersson
2017-03-01Add PDFPage and PDFAnnotation subclasses.Tor Andersson
2017-02-21java: Fix typo in authenticatePassword.Tor Andersson
2017-02-20android: Use system fonts as fallback instead of compiling binary blobs.Tor Andersson
This drastically reduces the size of the android library. Unfortunately it means font support is limited to what is available on the device. We look for both the old DroidSans fonts and the more recent Noto fonts.
2017-02-14Fix patch drawing in AndroidDrawDevice.Tor Andersson
It can be simplified now that we support custom strides in pixmaps.
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 fitPage, fitPageWidth functions to AndroidDrawDevice.Tor Andersson
2017-02-06Add bookmarks so we can find a location after reflowing a document.Tor Andersson
2017-01-31Add helper functions to AndroidDrawDevice.Tor Andersson
2017-01-23android: Add ndk-build makefile to build JNI library for android viewers.Sebastian Rasmussen
Run 'make android' to invoke ndk-build with the proper arguments. The results are placed in build/android.
2017-01-17java: Add gdb target for debugging JNI crashes.Sebastian Rasmussen
2017-01-17java: JNI code needs generated header files from mupdf library.Sebastian Rasmussen
2017-01-17java: Simplify loadLibrary call.Tor Andersson
Always look in order for the following libraries: mupdf_java64 mupdf_java32 mupdf_java
2017-01-17java: Add text searching.Tor Andersson
2017-01-17java: Allow custom compiler flags.Sebastian Rasmussen
2017-01-17Fix typos.Sebastian Rasmussen
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.
2017-01-09java: Handle outlines with duff links.Tor Andersson
2017-01-09java: Fix encoding problems when turning strings into java strings.Tor Andersson
Most strings coming out of various MuPDF functions are already decoded to utf-8; so manually decoding from PDFDocEncoding or UCS-2 is actually harmful rather than helpful.
2017-01-09java: Use default build type when compiling.Sebastian Rasmussen
The default choice is overridden in the same way as for a normal compile.
2017-01-09java: Automatically determine openjdk path.Sebastian Rasmussen
Also allow for overriding the decision by setting JAVA_HOME.
2016-12-27Strip extraneous blank lines.Tor Andersson
2016-11-17Build Java viewer with libcrypto support if available.Sebastian Rasmussen
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-14Make fz_buffer structure private to fitz.Robin Watts
Move the definition of the structure contents into new fitz-imp.h file. Make all code outside of fitz access the buffer through the defined API. Add a convenience API for people that want to get buffers as null terminated C strings.
2016-11-14Add/fix page coordinates to link targets.Tor Andersson
Correctly transformed target coordinates for PDF. Target coordinates for EPUB and HTML.
2016-11-14Add optional 'object' argument to pdf_add_stream.Tor Andersson
2016-11-11Update JNI code to compile on Win32 and Win64.Robin Watts
Just some typecasting required.
2016-11-08Change access to protected on parts of Image.java to allow AndroidImage to ↵fred ross-perry
build.
2016-11-03Fix MSVC build of JNI native code.Robin Watts
2016-11-03jni: Make it easy to use stext without options.Sebastian Rasmussen
2016-11-03jni: Only release stext options when present.Sebastian Rasmussen
2016-11-02jni: Add AndroidImage, using Android Bitmaps to create Images.Sebastian Rasmussen
2016-10-28Clean up link destination handling.Tor Andersson
All link destinations should be URIs, and a document specific function can be called to resolve them to actual page numbers. Outlines have cached page numbers as well as string URIs.
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-10-21jni: Update mupdf_native.h.Tor Andersson
2016-10-16Avoid casting when dropping super objects.Sebastian Rasmussen
2016-10-07Update Android build with fz_font/fz_colorspace API changes.Robin Watts
2016-09-23JNI: Improve string/name encoding handling.Robin Watts
At the moment, when we create java Strings from string or name PDFObjects, we assume they are all in javas not-quite-UTF-but-almost encoding. Here we assume they are in standard PDF format (namely that if they do not start with one of 2 specific BOMs, that they are in PDFDocEncoding). We update the code to convert to unicode, and create strings from that. This has the added side effect of correctly coping with 0 bytes in the middle of string buffers.
2016-09-23Android example: move kankan module.Fred Ross-Perry
Out of platform/java and into the platform/android/example.
2016-09-23JNI: Fix typo in logic.Robin Watts