summaryrefslogtreecommitdiff
path: root/source/fitz
AgeCommit message (Collapse)Author
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-20Add no-reuse-images option to SVG device.Tor Andersson
Also add explicit viewBox and width/height to image symbol and use elements, to work around a strange clipping/image scaling issue with firefox.
2017-02-20Fix svg text output when text span is all whitespace or empty.Tor Andersson
We were emitting unbalanced quotes for the x and y attributes.
2017-02-20Add fz_font_is_bold and italic functions. Use them for svg output.Tor Andersson
2017-02-20Emit more newlines in svg output.Tor Andersson
The aim is to put each tag on a line of its own.
2017-02-20Add svg writer.Tor Andersson
Now mutool convert can write SVG documents.
2017-02-17Bug 697592: Fix double application of transform.Robin Watts
When falling back from glyph cache based rendering to direct rendering, we were applying the transform twice due to the handling of dev->transform introduced in commit ccaf716. Fixed here.
2017-02-14Make svg text output format a runtime option.Tor Andersson
2017-02-09bug 697515: Fix out of bounds read in fz_subsample_pixmapRobin Watts
Pointer arithmetic for final special case was going wrong.
2017-02-08Add SVG_TEXT_AS_TEXT define.Robin Watts
Build with this defined, and we no longer send text as reusable symbols, but instead send it as genuine text, with all the potential problems (mismatching fonts etc) that this entails. Requested by a customer.
2017-02-06Add bookmarks so we can find a location after reflowing a document.Tor Andersson
2017-02-06Fix Win32 builds.Robin Watts
2017-01-23Fix fallback system callback for serif fonts.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-20Add system fallback font callback.Tor Andersson
2017-01-20Add separate TOFU_NOTO define to skip Noto fonts (but not Charis SIL).Tor Andersson
2017-01-17Fix typos.Sebastian Rasmussen
2017-01-17Fix 697476: Rename header files.Tor Andersson
Xcode has an idiotic default configuration where it gets confused by include search paths and file names in projects, so that it will load our "mupdf/fitz/math.h" instead of the system <math.h>. Work around this by renaming header files that have the same base name as a system header (even though they live in a subdirectory, and should never be available directly on the compiler's include path).
2017-01-17Remove preprocessor defines from vcproj.Tor Andersson
Keeping them up to date is difficult and prone to errors, so we move setting the USE_OUTPUT_DEBUG_STRING and FZ_LARGEFILE flags to the source instead of relying on project file definitions.
2017-01-17Don't throw from libjpeg callbacks!Tor Andersson
2017-01-17pdf: Rename FZ_ERROR_OOM to FZ_ERROR_MEMORY.Tor Andersson
2017-01-17Add value destructor callback to fz_hash_table.Tor Andersson
This allows us to prune the iteration functions. We also remove a few other unused functions.
2017-01-09Be consistent in use of DEBUG/NDEBUG macros.Tor Andersson
Only use NDEBUG as it's the one that most environments already set, so is likely to lead to the least amount of confusion if compiling with a custom build system.
2017-01-09Make fz_parse_xml take a fz_buffer. Make xps_part contain a fz_buffer.Tor Andersson
2017-01-09Fix potential buffer overrun when decoding UTF-16 in XML parser.Tor Andersson
2017-01-09Add fz_terminate_buffer function.Tor Andersson
Non-destructively zero terminate a fz_buffer for use as a C string.
2017-01-09Bug 697466: Fix banded PKM/PBM output.Robin Watts
When I regularised the band writing interface, I broke PKM and PBM in the banded case. Fixed here.
2017-01-06Fix /dev/null slowdown.Robin Watts
In commit 80308eae9964e71b66a18f3de6ebcd2ebf0d306b ("Regularize band writer interface"), I inadvertently slowed down outputting to /dev/null. Fixed here. Also take the opportunity to speed ppm/pnm files writing in general if we don't need to collate.
2017-01-06Fix MSVC breakage.Robin Watts
2016-12-27Bug 697455: Make JPX support optional via configuration flag.Tor Andersson
Set FZ_ENABLE_JPX=0 in XCFLAGS or include/mupdf/fitz/config.h to disable support for JPX at compile time. Be aware that this may break support for PDF 1.5 and later files that need JPEG2000 support.
2016-12-27Strip extraneous blank lines.Tor Andersson
2016-12-27Stylistic cleanups.Tor Andersson
2016-12-27Common code to ensure we only premultiply pixmaps with additive colors.Tor Andersson
2016-12-26Bug 697362: GIF frames use LZW encoding similar to TIFF.Sebastian Rasmussen
Commit c0759acc6e5bd8167ab4983fc51eb1212da6a216 introduced a laxer LZW encoding. The bug shows that this may also apply to GIF images.
2016-12-19SVG output: Fix dropped group alpha.Robin Watts
2016-12-16Fix memory leaks on errors in text searching utility functions.Tor Andersson
2016-12-14Have callers of fz_new_image_from_pixmap() drop supplied mask.Sebastian Rasmussen
This makes handling of the mask identical to that of the pixmap argument.
2016-12-14jpx: Delay determining if colorspace is indexed.Sebastian Rasmussen
2016-12-14jpx: Quietly limit number of components for openjpeg decoder.Sebastian Rasmussen
2016-12-14jpx: Create openjpeg decoder state.Sebastian Rasmussen
This allows for communicating the colorspace without using a pixmap.
2016-12-14jpx: Only do YCC-to-RGB conversion if decoding image samples.Sebastian Rasmussen
2016-12-14jpx: Optimize sample writing function.Sebastian Rasmussen
2016-12-14jpx: Delay reading metadata until parsing samples where possible.Sebastian Rasmussen
2016-12-14jpx: Only compute signed offsets once.Sebastian Rasmussen
2016-12-14jpx: Use local variables instead of repeatedly dereferencing state.Sebastian Rasmussen
2016-12-14jpx: Share YCC-to-RGB conversion for luratech/openjpeg decoders.Sebastian Rasmussen
2016-12-14jpx: Move state which is not shared among functions to decoder stack.Sebastian Rasmussen
In the case of fz_context *, use that for the allocator callbacks.
2016-12-14jpx: Use macro to check for palette.Sebastian Rasmussen
2016-12-14jpx: Max components is known, so avoid allocating arrays.Sebastian Rasmussen
2016-12-14jpx: Use fz_context directly, don't wrap it in state.Sebastian Rasmussen