summaryrefslogtreecommitdiff
path: root/fitz
AgeCommit message (Collapse)Author
2012-09-18Forms: add event handling api and specifically support for javascript alertPaul Gardiner
2012-09-18Forms: document event apiPaul Gardiner
2012-09-04Tweak fz_keep_stream to cope with NULL.Robin Watts
Simplifies coding.
2012-09-04Tweak to allow building on metro.Robin Watts
Limited testing seems to suggest that the only thing stopping the MuPDF library building on metro seems to be the use of winsock.h.
2012-09-04Merge branch 'master' into formsPaul Gardiner
Conflicts: pdf/pdf_xref_aux.c
2012-09-04Forms: mass renaming for the sake of consistencyPaul Gardiner
2012-08-29Handle missing clear codes in LZW.Sebastian Rasmussen
Previously if the lookup table was full and no clear code appeared the decoder would try to add more entries to the table. However the table is of fixed size (4096 entries) so it would write outside the table. Fix this by detecting when the lookup table is full and a clear code ought to appear. At this point the decoder will now treat and process any code as a clear code. For valid documents this will never happen, for invalid documents this means risking that succeeding codes may be misinterpreted and that the decoded data will be incorrect, this case should be handled by the consumer of the data though. Fixes bug 693306.
2012-08-29Merge branch 'master' into formsPaul Gardiner
Conflicts: cbz/mucbz.c pdf/pdf_parse.c pdf/pdf_form.c xps/xps_zip.c
2012-08-28Add fz_open_document_with_stream function.Tor Andersson
Use a "magic" string for filetype detection: filename or mime-type.
2012-08-23Silence some warnings.Robin Watts
Mountian Lion causes various different warnings to be given, possibly because a change to clang by default. Fix them here.
2012-08-23Update Memento to match the version in gs.Robin Watts
This brings in Memento_breakOnRealloc and Memento_breakOnFree along with some other small tweaks.
2012-08-16Fix 64-bit integer typedefs for MSVC.Tor Andersson
2012-08-16Use ULL suffix for SHA512 constants.Tor Andersson
2012-08-16Read unsigned numbers in PNG parser to avoid negative numbersSebastian Rasmussen
Thanks to zeniko for pointing out this fix.
2012-08-16Add SHA-384/-512 hash algorithmsSebastian Rasmussen
2012-08-16Prepare for addition of SHA-384/-512Sebastian Rasmussen
Adjust macros to make them reusable with 64-bit arithmetic. Rename functions to avoid future namespace collisions.
2012-08-16Make 64-bit integers available everywhere in fitzSebastian Rasmussen
2012-08-16Forms: respond to failed validation in windows appPaul Gardiner
2012-08-08Consistent use of whitespace in XML in trace device. Also print image size.Tor Andersson
2012-08-08Merge branch 'master' into formsPaul Gardiner
Conflicts: Makefile apps/mudraw.c pdf/pdf_write.c win32/libmupdf-v8.vcproj
2012-08-07Remove fz_too_deeply_nested.Robin Watts
Rather than specifically checking for the nesting getting too deep and hence throwing an error, the error handling should do this for itself. Make it so that we spot the depth being too great in the fz_try() and throw to the fz_catch().
2012-08-06Remove old error mesages turned into comments when adding exceptionsSebastian Rasmussen
2012-08-06Free jpeg state upon decoding error, even if not fully initedSebastian Rasmussen
Previously the jpeg decoder state had to be fully initialized in order to be freed when the jpeg decoder is closed, e.g. due to an error. Now, signal that the decode state is initialized earlier, even if the state has not been fully initialized, so that the state is freed.
2012-08-06Make fz_open_file_*() always throw exceptions upon errorSebastian Rasmussen
Thanks to Zeniko for pointing out the inconsistency.
2012-08-06Fix locking bug in path strokingSebastian Rasmussen
Thanks to Zeniko for pointing out this fix.
2012-08-06Throw exception on too deeply nested arrays/dictsSebastian Rasmussen
Previously we would run out of error stacks in the context and fail abruptly. Now, throw an exception and hope for the best. At least this plugs any memory leaks.
2012-08-06Free decoded jpx image upon errorSebastian Rasmussen
Thanks to Zeniko for pointing out this fix.
2012-08-03Forms: add basic support for choice widgets to the Windows appPaul Gardiner
2012-08-02Forms: add document dirty flagPaul Gardiner
2012-08-01Merge branch 'master' into formsPaul Gardiner
Conflicts: pdf/mupdf-internal.h pdf/pdf_font.c
2012-07-20Pass original font name to fz_new_font from PDF interpreter.Tor Andersson
Improves text device output when using substitute fonts. Fixes bug #693019.
2012-07-17Handle glyphs that are too large to render as pixmaps.Tor Andersson
2012-07-17Forms: implement library api for handling list boxes and combo boxesPaul Gardiner
2012-07-17Forms: remove unhelpful type distinctionPaul Gardiner
2012-07-09Make synthetic font styles match XPS spec more closely.Tor Andersson
Shear by 20 degrees for italic. Use 2% wider metrics for bold.
2012-07-09Forms: add widget enumeration, and text-widget content typePaul Gardiner
Now reusing the internal representation of an annotation for widgets to avoid two separate lists
2012-07-06Remove debugging functions for release builds.Sebastian Rasmussen
2012-07-06Whitespace fixes in fitz header.Sebastian Rasmussen
2012-07-05Merge branch 'master' into formsRobin Watts
2012-07-05Cope with stray returns at the start of a JPEG stream.Robin Watts
Acrobat seems to cope, we should too. See normal_439.pdf for an example.
2012-07-05Move to static inline functions from macros.Robin Watts
Instead of using macros for min/max/abs/clamp, we move to using inline functions. These are more typesafe, and should produce equivalent code on compilers that support inline (i.e. pretty much everything we care about these days). People can always do their own macro versions if they prefer.
2012-07-05Cope with negative lengths being passed to fz_open_nullRobin Watts
normal_994.pdf SEGVs due to a negative length. Simple fix to treat negative length streams as 0 length.
2012-07-04Bug 693160: Fix bug in fz_write_buffer_bits.Robin Watts
When writing few enough bits that they would fit into the 'spare' bits in the last byte, I was failing to update the buffer. Also, I was failing to grow the buffer enough, and calculating the wrong number of bits left over in various places. Both fixed here. Thanks to Robert Jedrzejczyk and Sebras!
2012-07-04Prediction filter assumes it's writing to zeroed memory.Robin Watts
The putcomponent function assumes the function has been cleared. Simple fix to clear bytes at the start of each scanline. Problem seen with normal_217.pdf
2012-06-28Update tiff iamge predictor to cope with 16 bits.Robin Watts
normal_178.pdf contains a monochrome black and white image, encoded as 16bpc rgb.
2012-06-27Fix clipping of stroked text seen in displaylist cases.Robin Watts
When calculating the displaylist node rectangles, we were failing to adjust for linewidth/mitrewidth etc. This could result in glyphs being clipped; see normal_130.pdf for example.
2012-06-27Make ASCII85 decoding more tolerant of end of stream errors.Robin Watts
This solves the normal_87.pdf rendering issues.
2012-06-25Fix warnings/compile error on linux.Robin Watts
min is a windows only define.
2012-06-25Fix incorrect assignment in unused bitmap accessor.Sebastian Rasmussen
2012-06-25Warning fixes and various clean ups:Sebastian Rasmussen
Remove unused variable, silencing compiler warning. No need to initialize variables twice. Remove initialization of unread variable. Remove unnecessary check for NULL. Close output file upon error in cmapdump.