summaryrefslogtreecommitdiff
path: root/apps/mudraw.c
AgeCommit message (Collapse)Author
2012-08-06Make use of fz_always instead of repeating code for error and normal pathSebastian Rasmussen
2012-07-27Fix typo in mudraw preventing tracking of slowest page drawSebastian Rasmussen
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-06-12Change mudraw to set the error code if rendering errors present.Robin Watts
Make mudraw pass a cookie in to the rendering procedures. If any errors are reported for any page, remember this, and set the return code to 1 on exit.
2012-05-27Print filenames for fastes/slowest page in mudrawSebastian Rasmussen
2012-05-10Clamp page numbers given to mupdfclean.Sebastian Rasmussen
Also make page specification parsing in all tools look similar.
2012-05-01Always print the file name upon errors in mudraw.Sebastian Rasmussen
2012-04-28Avoid diving by zero in mudraw.Sebastian Rasmussen
2012-04-20Add -ttt into usage string for mudraw.Robin Watts
2012-04-06Bug 692960: Ensure that -g flag overrides filename detectionRobin Watts
Currently the colorspace is selected on detecting -g, but may then be overridden based on the filename; the -g option should be given priority so the fix is simply to move the check for -g down a few lines. Thanks to James Cloos for spotting the problem and suggesting the fix.
2012-03-16Mudraw: Maximum width/height flags.Robin Watts
If -w and/or -h are used at the same time as -r, then treat -w and -h as maximum width/height rather than absolute width/height.
2012-03-14Fix memory leaks in style sheet handling of the new text device.Tor Andersson
2012-03-13Make fz_print functions all take a FILE *.Robin Watts
Also tidy up the taking of fz_context *'s, and hide an unwanted indent param.
2012-03-13Rename some functions and accessors to be more consistent.Tor Andersson
Debug printing functions: debug -> print. Accessors: get noun attribute -> noun attribute. Find -> lookup when the returned value is not reference counted. pixmap_with_rect -> pixmap_with_bbox. We are reserving the word "find" to mean lookups that give ownership of objects to the caller. Lookup is used in other places where the ownership is not transferred, or simple values are returned. The rename is done by the sed script in scripts/rename3.sed
2012-03-12Create style sheet and group extracted text into blocks, lines and spans.Tor Andersson
2012-03-12Merge branch 'header-split'Robin Watts
2012-03-12Add -w, -h and -f options to mudraw.cRobin Watts
Exact width or height values can now be specified to mudraw for output bitmaps. If both are specified the the largest scaling consistent with the aspect ratio not exceeding the given width or height is used, unless the -f flag is specified too, in which case the aspect ratio is ignored and the output 'fits' exactly.
2012-03-12More API work.Robin Watts
Details of buffers hidden in fitz-internal.h. Public API now just lets us keep/drop and get storage details for a buffer. fz_debug_outline{,_xml} lose the 'level' param in their public API. fz_matrix_max_expansion hidden, as it's only used internally. Document fz_setjmp/fz_longjmp and Apple specific hackery.
2012-03-12Merge branch 'master' into header-splitRobin Watts
2012-03-12More API tidying.Robin Watts
Make fz_clone_context copy existing AA settings. Add accessor function for fz_bitmap. Add more documentation for various functions/types.
2012-03-10Make mudraw and the trace device print well-formed XML.Sebastian Rasmussen
2012-03-07Tweak Halftone functionsRobin Watts
A NULL halftone pointer passed to fz_halftone_pixmap is now taken to mean "use the default halftone". This means we can remove most of the halftone functions from the public API until (post 1.0) we decide to flesh out the functionality.
2012-03-07Splitting tweaks.Tor Andersson
2012-03-06Split fitz.h/mupdf.h into internal/external headers.Robin Watts
Attempt to separate public API from internal functions.
2012-02-13Create mudraw; mupdfdraw cloned and adapted to use fz_documentRobin Watts
All in one command line replacement for muxpsdraw and mupdfdraw.