summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-11-14Simplify fz_try/fz_catch by removing failed flag.Robin Watts
The failed flag can be removed by having the fz_throw (and fz_rethrow) functions do the popping of the stack.
2011-10-04Establish 'break scope' within fz_try macroRobin Watts
It is vital that no one returns from within fz_try. As such it's often necessary to jump out of an fz_try. This can mean using a label at the end of the fz_try section to goto. By introducing a "do { } while (0)" around the contents of the fz_try we allow people to 'break' (or 'continue') to get out neatly.
2011-10-04Reintroduce alloc context section.Robin Watts
This was removed during a previous commit to make the editing easier. Now added back in.
2011-10-04Move to exception handling rather than error passing throughout.Robin Watts
This frees us from passing errors back everywhere, and hence enables us to pass results back as return values. Rather than having to explicitly check for errors everywhere and bubble them, we now allow exception handling to do the work for us; the downside to this is that we no longer emit as much debugging information as we did before (though this could be put back in). For now, the debugging information we have lost has been retained in comments with 'RJW:' at the start. This code needs fuller testing, but is being committed as a work in progress.
2011-09-21Rename xps_context to xps_document.Tor Andersson
2011-09-21Add warning context.Tor Andersson
2011-09-21Rename malloc functions for arrays (fz_calloc and fz_realloc).Tor Andersson
2011-09-21Don't thread ctx through safe fz_obj functions.Tor Andersson
2011-09-20Reshuffle exception context code to fit Tor's aesthetic sense.Tor Andersson
2011-09-15Add context to mupdf.Robin Watts
Huge pervasive change to lots of files, adding a context for exception handling and allocation. In time we'll move more statics into there. Also fix some for(i = 0; i < function(...); i++) calls.
2011-09-14Initial import of exception handling codeRobin Watts
Import exception handling code from WSS, modified to fit into the fitz world. With this code we have 'real' fz_try/fz_catch/fz_rethrow functions, handling a fz_except type. We therefore rename the existing fz_throw/ fz_catch/fz_rethrow to be fz_error_make/fz_error_handle/fz_error_note. We don't actually use fz_try/fz_catch/fz_rethrow yet...
2011-09-14Add Memento build option.Robin Watts
Import memento files. Update Makefile to support: make build=memento (like debug, but with memento too). Tiny tweak to cmapdump to avoid memento building that utility.
2011-09-06Don't invoke tiling device calls when there is only one tile to be drawn.Tor Andersson
2011-09-06Support empty and little-endian UTF-16 strings.Tor Andersson
Also don't read out of bounds if the string is cut short in the middle of the last two-byte character.
2011-09-05Version 0.9Tor Andersson
2011-09-05Use 3-digit octal escapes in strings.Tor Andersson
Octal escapes in strings that are followed by a digit must use three digits, with leading zeros if needed, so that they can be unambiguously parsed.
2011-09-04Fix bug where PDF version of document was not correctly parsed.Sebastian Rasmussen
2011-09-04Update manpages for tools.Sebastian Rasmussen
2011-09-04Reload file in X11 viewer upon SIGHUP.Sebastian Rasmussen
2011-09-04Coalesce consecutive X11 resize events into a single resize operation.Sebastian Rasmussen
2011-09-04Repaint only viewer search area when editing search string.Sebastian Rasmussen
2011-09-04Do not redraw viewer window if the search string is not found.Sebastian Rasmussen
2011-09-04Fix panning bug in viewer related to backwards search.Sebastian Rasmussen
Searching backwards in the document for a non-existing string resulted in the window being redrawn with no document. Until next repaint, at which point the window was redrawn again this time with the document present.
2011-09-04Send string not found message to viewer app, don't print on stdout.Sebastian Rasmussen
2011-09-04Do not search for empty strings in viewer.Sebastian Rasmussen
2011-09-04Go to first page when 'g' is pressed without number prefix in viewer.Sebastian Rasmussen
2011-09-04Remove unused redraw timeout from X11 viewer.Sebastian Rasmussen
2011-09-03Introduce ATTEMPT_KNOCKOUT_AND_ISOLATED define (off by default).Robin Watts
Until such time as the knockout and isolated group support is known to work properly, leave it disabled so we behave the same as we have until now.
2011-09-02Fix bug 692248. Ensure objstm references are valid.Tor Andersson
2011-09-02Relax length requirements of ID and U keys in encryption dictionaries.Tor Andersson
2011-09-02Fix bug 692356: use stricter limit for dash pattern lengths.Tor Andersson
2011-09-02Fix minor regression in fix for zero-length line segment dots.Tor Andersson
2011-09-02Add Droid Sans Mono as a substitute font.Tor Andersson
2011-09-02Update DroidSans and DroidSansFallback fonts to latest version.Tor Andersson
... and put them in the proper location this time.
2011-09-01Manage linewidth state correctly when rendering text with stroking.Tor Andersson
2011-09-01Only draw dots for zero-length line segments with round line caps.Tor Andersson
2011-09-01Use correct concatenation order for XObject matrix.Tor Andersson
2011-08-31Update DroidSans fonts to latest upstream versions.Tor Andersson
2011-08-31Make in_array state a local variable to cope with broken XObject streams.Tor Andersson
2011-08-30Ignore X11 key mappings when searching.Bert
2011-08-30Do not change view when reloading file.Bert
2011-08-29Check for and disallow image depths greater than 16.Tor Andersson
2011-08-29Turn off shrinkwrap mode when maximizing the window.Tor Andersson
2011-08-17pdfdraw: Add command line option to gamma correct and invert images.Tor Andersson
2011-08-09Fix bug 692312.Tor Andersson
Make sure the CSI works from a clean slate in pdf_run_stream, since it may be called to draw a softmask form pdf_flush_text in the middle of parsing a TJ text array. Also guard against xobject failures by catching instead of rethrowing xobject parse errors so that the begin and end group draw calls are balanced.
2011-08-09Fix bug 692272: use the softmask_ctm when drawing soft masks.Tor Andersson
2011-08-09Fix bug 692253: handle curvetov with no current point set.Tor Andersson
Also ignore path components with no current point set and print a warning rather than doing an implicit moveto(0,0).
2011-08-09Fix bug 692284: return error for empty resource dictionaries.Tor Andersson
2011-08-09Fix bug 692412: typo in buffer size.Tor Andersson
2011-08-06Cosmetic style fixes.Tor Andersson