summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-09-08Handle too big pixmap by printing error message in X11 viewer.Sebastian Rasmussen
2016-09-08JS: Add Path.bound() and Path.transform() similar to JNI.Sebastian Rasmussen
2016-09-08EPUB and XPS may only be zip archives or directories.Sebastian Rasmussen
2016-09-08Add support for GNU tar archives.Sebastian Rasmussen
2016-09-08Make fz_archive a generic archive type.Sebastian Rasmussen
Previously it was inherently tied to zip archives and directories. Now these are separated out into distinct subclasses. This prepares for support for further archive formats.
2016-09-08JNI: 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-08JNI: Remove redundant cleanup.Sebastian Rasmussen
2016-09-08JNI: 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-08JNI: Copy data back to Java arrays.Sebastian Rasmussen
The Java arrays are the destination when reading from Buffer.
2016-09-08JNI: Make sure to keep fitz objects passed to Java objects.Sebastian Rasmussen
2016-09-08JNI: Handle errors from AndroidBitmap_unlockPixels().Sebastian Rasmussen
2016-09-08JNI: Move failure testing code outside of fz_try().Sebastian Rasmussen
2016-09-08JNI: Use Android enum for detecting failure.Sebastian Rasmussen
2016-09-08JNI: 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-08JNI: Handle exceptions from JVM properly.Sebastian Rasmussen
2016-09-08JNI: Cosmetic reordering of code.Sebastian Rasmussen
Including removal of unnecessary #ifdef.
2016-09-08JNI: Throw OutOfBoundsException for out of range values.Sebastian Rasmussen
2016-09-08JNI: Throw IOException when Buffer fails to read/write.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-08JNI: Check arguments and throw suitable exceptions.Sebastian Rasmussen
2016-09-06Devices now handle colorspace being NULL as alpha-only.Sebastian Rasmussen
2016-09-06Luminosity transparency group must have colorspace when used as softmask.Sebastian Rasmussen
Previously no fallbacks happened if the colorspace was not set, now gray is assumed. The reason this is safe is that the softmasks backdrop color entry is always filled with one component value (possibly being 0) matching the gray component of the colorspace.
2016-09-05Mutool clean: Avoid "Not a dict (<NULL>)" errorRobin Watts
If there are no outlines, don't throw an error trying to strip them.
2016-09-05mutool clean: Fixes seen as part of bug 697092 investigation.Robin Watts
Firstly, we avoid compressing streams if they get bigger. Secondly, we ensure that we always update the Length field. Seen as part of the investigation into bug 697092, though not the actual cause. Thanks to Tor for the latter part of the fix.
2016-09-01Use fz_convert_color().Sebastian Rasmussen
In preference to colorspace internal to_rgb() function pointer.
2016-09-01JNI: Support size() and push() for arrays.Sebastian Rasmussen
2016-09-01JNI: 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-01JNI: get_context() may throw error and should be handled separately.Sebastian Rasmussen
2016-09-01JNI: 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-01JNI: 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-01JNI: Use short form of NULL checks.Sebastian Rasmussen
2016-09-01JNI: Use jboolean/JNI_TRUE/JNI_FALSE everywhere.Sebastian Rasmussen
2016-09-01JNI: Whitespace/comment/error message cleanup.Sebastian Rasmussen
2016-09-01JNI: Remove unused nativeAnnots/-Links.Sebastian Rasmussen
2016-09-01JNI: Remove unused variables and cast byte array region.Sebastian Rasmussen
Fixes two compiler warnings.
2016-09-01JNI: Update to new pdf_load_stream interface.Sebastian Rasmussen
2016-09-01Always use glyph aliases when creating encoding tables.Tor Andersson
We were only looking through the glyph name alias list for Type1 fonts. Change the encodings for truetype to use the full glyph list alias list as a fallback when the regular encoding by code point fails.
2016-09-01pdf: Load/open streams by indirect reference object when possible.Tor Andersson
2016-09-01Simplify PDF resource caching table handling.Tor Andersson
2016-08-30Don't try to copy a NULL dictionary.Tor Andersson
2016-08-30Fix pdfextract for optional pixmap alpha changes.Tor Andersson
2016-08-30Use U+FFFD instead of '?' for bad encodings in text extraction.Tor Andersson
2016-08-30js: Add PDFObject.length and PDFObject.push() to handle arrays.Tor Andersson
2016-08-24Add pdf_array_find to look up the index of an object in an array.Tor Andersson
2016-08-24Bug 696983 - Fix bidirectional XPS spacing.Tor Andersson
Bidirectional setting was not accounted for when advance width was set in the XPS Indices Attribute.
2016-08-24When NULL is added to PDF dicts/arrays, insert null objects.Sebastian Rasmussen
2016-08-24Be stricter in what can be added into arrays/dicts.Sebastian Rasmussen
2016-08-24Do not resolve PDF dict keys before using them.Sebastian Rasmussen
Only direct PDF name objects should be used as arguments, indirect PDF name objects cannot be used.
2016-08-24Always check that PDF dict keys are names in same way.Sebastian Rasmussen
2016-08-24Add macros for checking PDF object type.Sebastian Rasmussen
This avoids resolving object references which is important for dictionary keys.