summaryrefslogtreecommitdiff
path: root/platform
AgeCommit message (Collapse)Author
2017-04-27Clean up store debug printing.Tor Andersson
Replace fz_print_hash with fz_hash_for_each iterator. Use string formatting callback.
2017-04-27Ensure we can compile as -pedantic -std=c99.Tor Andersson
2017-04-27Include required system headers.Tor Andersson
2017-04-27Include "mupdf/ucdn.h" explicitly.Tor Andersson
2017-04-27Use FZ_PATH_MAX.Tor Andersson
PATH_MAX is Linux specific.
2017-04-20Remove needless -Igenerated flags.Tor Andersson
Also remove -I../../ucdn from the visual studio project.
2017-04-20jni: Add constructor to duplicate existing matrix.Sebastian Rasmussen
2017-04-20jni: Pass independent character matrices when walking through text.Sebastian Rasmussen
This avoids altering the matrices previously given to the Text walker.
2017-04-20jni: Fix typo in native identifier.Sebastian Rasmussen
2017-04-20jni: to_Annotation() may fz_throw(), make it safe.Sebastian Rasmussen
Previously to_Annotation() would fz_throw() upon errors, but the code calling it couldn't handle that. Create to_Annotation_safe() that does not throw and remove the now unused to_Annotation().
2017-04-20jni: PDFAnnotation and PDFPage additions.Sebastian Rasmussen
2017-04-20jni: Implement missing interfaces.Sebastian Rasmussen
2017-04-20jni: Check that JNI enums match those in the library.Sebastian Rasmussen
2017-04-20jni: Remove exposed device hints.Sebastian Rasmussen
2017-04-18jni: Propagate exception message, do not override it.Sebastian Rasmussen
2017-04-18jni: Clear java exception when rethrow via fz_throw().Sebastian Rasmussen
Previously when a java exception was pending CallObjectMethod() was called. This is not permitted and so the exception must be cleared before this function is called. Secondly if the method called by CallObjectMethod() throws an exception this exception was left pending when fz_throw() for unknown java errors was called. Later on jni_rethrow() would be called which in turn called ThrowNew(). This is not permitted either, so the pending exception must be cleared if caused by the call to CallObjectMethod(). Because fz_throw_java() always ends with a fz_throw() it is safe to assume that the pre-existing exception (or the one caused by CallObjectMethod()) will always be converted into a fz_throw(), which in turn will be converted back to a java exception since all calls to fz_throw_java() are enclosed in fz_try() where fz_catch() ends with calling jni_rethrow().
2017-04-18jni: NewStringUTF() may throw exception, handle this.Sebastian Rasmussen
When NewStringUTF() throws an exception NewObject() may not be called. Change to code to avoid this.
2017-04-18jni: Use consistent naming in conversion functions.Sebastian Rasmussen
2017-04-18jni: Fix typo in identifier.Sebastian Rasmussen
2017-04-13Register .fb2 extension in mupdf-gl on windows.Tor Andersson
2017-04-13Register .fb2 extension in windows viewer.Tor Andersson
2017-04-13Export fz_recognize_document and use it in java code.Sebastian Rasmussen
2017-04-13Change generated files to be C instead of headers.Tor Andersson
Remove AdobeCA.p7c from autogenerated files. Just include the array in the source. Simplifies makefile dependencies and makes the sizes of each bit of data easier to look at. It also paves the way for eventually using objcopy to create binary objects for the fonts instead of needing to use hexdump.
2017-04-13Clean up mupdf-gl usage message.Tor Andersson
2017-04-13gl: Support going to a specific page number on the command line.Tor Andersson
2017-04-11jstest: Stop printing bogus script lines.Sebastian Rasmussen
2017-04-11Bug 697551: Make path and line buffers of equal size.Sebastian Rasmussen
Previously a too long line could be copied into the too short path buffer.
2017-03-29Happy New Year!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-22Always use %g for short-as-possible format character.Tor Andersson
Call fz_append_string instead of fz_append_printf for static strings. Call fz_write_string instead of fz_write_printf for static strings.
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-22Fix windows GLFW build.Tor Andersson
2017-03-22Rename libjpeg submodule.Tor Andersson
2017-03-21Replace fontdump, bin2hex and cquote with one tool: hexdump.Tor Andersson
Still need specialty tools for namedump and cmapdump.
2017-03-15gl: implement fullscreen supportTuncer Ayaz
2017-03-15gl: use fix title for X11 class and instanceTuncer Ayaz
When creating the GLFW window, filename was used as the title. That makes it impossible to apply window manager rules based on class or instance since each invocation gets a different string based on the filename.
2017-03-15Add PDF_ANNOT_UNKNOWN enum.Tor Andersson
2017-03-14Add MSVC project file forgotten from previous commitRobin Watts
2017-03-11Fix MSVC solution.Robin Watts
If we have mutool depend on libluratech, then it won't build when luratech is not installed. If we don't have mutool depend on libluratech, then it won't build the Commercial versions. The basic problem is that dependencies in MSVC can't be dependent on configuration. Therefore, move the guts of mutool into libmutool, and have mutool and mutool-lura projects that depend on it. mutool-lura can also depend on libluratech. mutool builds in non commercial configurations, and mutool-lura in the commercial ones.
2017-03-01Add PDFPage and PDFAnnotation subclasses.Tor Andersson
2017-02-22Move PATH_MAX to system.hMichael Vrhel
Better to have this defined at the system level rather than scattered about in various files.
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-20Add svg writer.Tor Andersson
Now mutool convert can write SVG documents.
2017-02-20Add F1 help dialog to show key bindings in mupdf-gl.Tor Andersson
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-14gl: Add 'hjkl' keybindings that behave like the arrow keys.Tor Andersson
Change the binding 'l' for showing links to 'L'.