summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-03-28Return fz_document from all document handlers.Sebastian Rasmussen
To make it possible to avoid casting in most cases.
2017-03-28Java fixes.Tor Andersson
2017-03-28Rejig fz_new_annot to fz_new_derived_annot.Robin Watts
More consistent with the rest of the code.
2017-03-28Rejig fz_new_device to be fz_new_derived_device.Robin Watts
In keeping with the rest of the code.
2017-03-28Rename fz_new_archive to fz_new_derived_archiveRobin Watts
Fits with the rest of the code.
2017-03-27Add more API docs for document writers.Robin Watts
2017-03-27Tweak document_writer - don't pass dev back in.Robin Watts
It seems odd for a document writer to pass a device pointer out, and then require it to be passed back in. Hide that in the public API.
2017-03-25Add fz_storable_needs_reaping.Robin Watts
Avoids needing to access the internals of reference counting.
2017-03-24Fix needs_reap entry in key storable.Robin Watts
There is no need to hold a separate flag to say that we need reaping, when this can be implied from the store_key_refs and the normal refcount being equal. In addition, I don't think we were ever actually setting this, so the code was wrong to start with.
2017-03-24Ensure fz_store_types are all static const.Robin Watts
2017-03-24Add fz_new_XXX_document_writer calls for pixmaps.Robin Watts
This enables people to access (say) a PNG writer without pulling in every single document writer at link time. (Of course, currently, without function level linking, even now we'll pull everything in, but we can improve this by splitting source files up).
2017-03-23Introduce fz_new_derived_...Robin Watts
Instead of having fz_new_XXXX(ctx, type, ...) macros that call fz_new_XXXX_of_size etc, use fz_new_derived_... Clearer naming, and doesn't clash with fz_new_document_writer.
2017-03-23Add fz_new_writer function.Robin Watts
Moves document_writers into the same style as fz_new_{image,document,page} etc.
2017-03-23Add generic pixmap document writer.Tor Andersson
Allow mutool convert to output all image formats we can write. Add sanity checks for pbm and pkm writers.
2017-03-23Fix bug with printing integer zero in printf.Tor Andersson
2017-03-22Add API docs for fz_page_ function types.Robin Watts
2017-03-22Update fz_new_page.Robin Watts
Move this into the same style as fz_new_document and fz_new_image.
2017-03-22Fix threaded muraster build.Robin Watts
2017-03-22Extend our printf formatting to take width and precision.Tor Andersson
2017-03-22Simplify string formatter API.Tor Andersson
Emit characters with callbacks so we don't need to do two passes using vsnprintf to count, format, and copy the result.
2017-03-22Always use %g for short-as-possible format character.Tor Andersson
Call fz_append_string instead of fz_append_printf for static strings. Call fz_write_string instead of fz_write_printf for static strings.
2017-03-22Rename fz_putc/puts/printf to fz_write_*.Tor Andersson
Rename fz_write to fz_write_data. Rename fz_write_buffer_* and fz_buffer_printf to fz_append_*. Be consistent in naming: fz_write_* calls write to fz_output. fz_append_* calls append to fz_buffer. Update documentation.
2017-03-22Optimize fz_write_xxx functions.Tor Andersson
Call out->write directly.
2017-03-22Fix windows GLFW build.Tor Andersson
2017-03-22Rename libjpeg submodule.Tor Andersson
2017-03-22Clean up makefiles.Tor Andersson
2017-03-21Replace fontdump, bin2hex and cquote with one tool: hexdump.Tor Andersson
Still need specialty tools for namedump and cmapdump.
2017-03-20Remove fz_drop_image_base.Robin Watts
2017-03-20Add Memento_label to fz_new_imageRobin Watts
2017-03-20Fix threaded mutool build breakage.Robin Watts
2017-03-20Update API header documentationRobin Watts
Images, Document and Document Handlers.
2017-03-20epub: Fix disappearing images bug.Tor Andersson
The bug was introduced in commit ad09b038 where we adjust the y coordinate in draw calls instead of using the top level matrix so that high level output devices get reasonable page coordinates for objects. We forgot to adjust the y coordinate for images.
2017-03-15Silence warning.Tor Andersson
2017-03-15Split fz_band_writer into its own header file.Tor Andersson
2017-03-15svgwrite: Use width of glyph to position characters in cluster maps.Tor Andersson
This evenly spaces the sub-parts of a ligature.
2017-03-15svgwrite: Use #RRGGBB color syntax.Tor Andersson
2017-03-15svgwrite: Fix pen advance for ligatures.Tor Andersson
harfbuzz puts all ligature component characters at the same coordinate as the glyph.
2017-03-15gl: implement fullscreen supportTuncer Ayaz
2017-03-15gl: use fix title for X11 class and instanceTuncer Ayaz
When creating the GLFW window, filename was used as the title. That makes it impossible to apply window manager rules based on class or instance since each invocation gets a different string based on the filename.
2017-03-15Only include pthread library when needed.Tor Andersson
Rename HAVE_PTHREADS to HAVE_PTHREAD to match naming of other defines, where the macro is named after the library that is linked.
2017-03-15Update GLFW submodule.Tor Andersson
2017-03-15Add PDF_ANNOT_UNKNOWN enum.Tor Andersson
2017-03-15Optimize svg text output.Tor Andersson
Emit one <tspan> per line, so we only need to emit one 'y' coordinate for the whole line, instead of repeating it for each character.
2017-03-14Update PWG writer to be a band_writer.Robin Watts
Update mutool to call it.
2017-03-14Recast TGA output as a band writer.Robin Watts
Annoyingly TGA requires lines to be written from bottom to top, so require callers to flip the image. Also fix TGA to cope with alpha or not. Update mutool draw to use band writer interface for TGA.
2017-03-14Add MSVC project file forgotten from previous commitRobin Watts
2017-03-11Fix PS image output.Robin Watts
Appears to have been broken since alphas were optional.
2017-03-11Simplify fz_band_writer API.Robin Watts
Remove needless parameter passing in fz_band_writer API. We always know the bandstart, so why make the caller keep track of it and pass it in? Similarly, we know when we hit the end of the page, so why require us to trigger the trailer writing manually?
2017-03-11Fix MSVC solution.Robin Watts
If we have mutool depend on libluratech, then it won't build when luratech is not installed. If we don't have mutool depend on libluratech, then it won't build the Commercial versions. The basic problem is that dependencies in MSVC can't be dependent on configuration. Therefore, move the guts of mutool into libmutool, and have mutool and mutool-lura projects that depend on it. mutool-lura can also depend on libluratech. mutool builds in non commercial configurations, and mutool-lura in the commercial ones.
2017-03-11Improve API documentation for fz_output.Robin Watts
Move implementation to be more in line with fz_streams. Much closer parallels now.