summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-07-20JNI: Declare methods for internal use private.Sebastian Rasmussen
2016-07-19JNI: 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-19JNI: 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-18Bug 696927: Move debug printfs to fz_warn.Robin Watts
I did debate about removing these, but it looks like they are flagging up places where processing is incomplete, so I've left them in, and they will just appear on stderr now.
2016-07-18Bug 696662: Android viewer: data from URI stream fix.Robin Watts
Apparently, if MuPDF is invoked on a content stream that comes from a URI, then is.available() can report 0 bytes (as there is no data buffered). Use a modified formulation that reads as much data as possible from the stream into a BufferedOutputStream and then makes a byte array from that. Would be nicer if the core could actually read from the stream directly, perhaps, but that can wait for the new JNI based version. Thanks to Marc K for identifying the problem and supplying the patch.
2016-07-18Attempt to fix PWG output.Robin Watts
Broken by alpha changes.
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: Validate that page indicies are always positive.Sebastian Rasmussen
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-15android example - fix whitespace issue.fred ross-perry
2016-07-15android example: An attempt to improve the fluttering at the edges while ↵fred ross-perry
zooming and scrolling.
2016-07-15android example - add cacheing of page contents and annotations.fred ross-perry
2016-07-15android example - add a button to toggle annotationsfred ross-perry
2016-07-15android example - VERY brief build instructions.fred ross-perry
2016-07-15android desktop view - add a button to toggle annotations on/off.fred ross-perry
2016-07-15java - move fitz sources into a 'src' subfolder.fred ross-perry
2016-07-15Android viewer - fix bugs in mupdf.c associated with changing APIs.fred ross-perry
fz_bound_page needs the correct 2nd argument pdf_widget_get_type should be pdf_widget_type
2016-07-15Fix indentation for Java sources.Tor Andersson
2016-07-15Fix bug in .gitattributes pattern.Tor Andersson
2016-07-15Add -P flag to muraster.Robin Watts
2016-07-15Fix build breakage in Android viewer jni code.Robin Watts
2016-07-15Bug 696493: Fix typo in earlier commit.Robin Watts
Thanks again to Tamir Evan for pointing this out.
2016-07-15Support changing reflowable font size in JNI sample viewer.Sebastian Rasmussen
Also fix bug in sample java viewer where zoom caused an Exception.
2016-07-15Adding 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-15Cleanup 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-15Add interface indicating if a document is reflowable.Sebastian Rasmussen
2016-07-14Simple update due to API changeMichael Vrhel
2016-07-14Fix typo in fz_new_stext_page_from_page.Tor Andersson
2016-07-14Update android viewer with fz_close_device.Robin Watts
Reflect API change in example viewer.
2016-07-14Update iOS code to call fz_close_device.Robin Watts
Reflect the change in API in the ios code.
2016-07-14Fix whitespace and indentation.Tor Andersson
2016-07-14Add editorconfig and update gitattributes.Tor Andersson
2016-07-14Update MuJS.Tor Andersson
2016-07-14x11: Update x11/win32 viewer for fz_close_device changes.Tor Andersson
2016-07-13Bug 696699: Fix Text extraction mediabox information.Robin Watts
Since the removal of the begin_page device function, structured text extraction has been unable to correctly establish the mediabox for extracted pages. Update the fz_new_stext_page call to take this mediabox information. This is an API change, but hopefully most people are calling fz_new_stext_page_from_page or fz_new_stext_page_from_display_list which are updated here to cope. Update all the apps/tools to behave properly.
2016-07-13Bug 696493: Fix MINGW build of viewer.Robin Watts
Adopt patch from Tamir Evan. Many thanks.
2016-07-13Bug 696892: PDF annotation appearance stream synthesis SEGVRobin Watts
The code would SEGV if we were trying to synthesise an appearance stream for an annotation, and the docs pdf resources table had not been initialised. We now intialise the pdf resource tables when we initialise a pdf device. This is the earliest point we know we are going to need them, and covers all cases.
2016-07-13Use fz_malloc_struct rather than fz_calloc.Robin Watts
This helps with Memento debugging, and looks neater.
2016-07-13Bug 696910: Fix MINGW build.Robin Watts
Additional flags/compiler settings required for successful building on MINGW due to harfbuzz's use of strdup.
2016-07-13Fix memory leaks in SVG device.Robin Watts
2016-07-13Bug 696846: Fix badly formed SVG output.Robin Watts
This has been broken since fz_text was changed to be multiple fz_text_spans.
2016-07-13Fix knockout/mask interaction.Robin Watts
When we are rendering a knockout group, we set the knockout flag. Do NOT carry this forward into the renderings of any softmasks. This fixes Bug 696870 and 696872.
2016-07-13Fix MSVC build of murunRobin Watts
2016-07-13Fix Memento builds; static references were upsetting refcounting.Robin Watts
2016-07-12Fix typo in comment.Robin Watts