summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)Author
2017-05-04Drop FZ_PATH_MAX macro.Tor Andersson
Define PATH_MAX in the few files that use it, should it be missing.
2017-05-03Fix windows build: Don't set _LARGEFILE64_SOURCE on windowsRobin Watts
This causes zlib to look for a header we don't have.
2017-04-27Typedef function pointers consistently.Tor Andersson
2017-04-27Remove debug printing code.Tor Andersson
It's not used, so prone to bit rot. Better to purge it.
2017-04-27Clean up store debug printing.Tor Andersson
Replace fz_print_hash with fz_hash_for_each iterator. Use string formatting callback.
2017-04-27Move fz_outline and pdf_xref debug printing to pdfshow.cTor Andersson
That's where it's actually being used.
2017-04-27Use FZ_SEEK_SET macros for fz_seek.Tor Andersson
Don't depend on stdio.h for our own I/O functions.
2017-04-27Include required system headers.Tor Andersson
2017-04-27Remove fz_function abstract structure.Tor Andersson
There is only one implementation, so don't bother with the abstraction. Just use pdf_function directly.
2017-04-27Remove unused fz_function debug printing.Tor Andersson
2017-04-27Remove public SVG header.Tor Andersson
Move the two SVG utility functions into fitz/util.h
2017-04-27Make HTML header private.Tor Andersson
2017-04-27Include "mupdf/ucdn.h" explicitly.Tor Andersson
2017-04-27Use namespace prefix for bidi defines.Tor Andersson
2017-04-27Use FZ_PATH_MAX.Tor Andersson
PATH_MAX is Linux specific.
2017-04-27Use namespace for AES crypto code.Tor Andersson
2017-04-27Rename FMT_zu to FZ_FMT_zu.Tor Andersson
Don't use FMT_zu macro for fz_throw/fz_warn, since we can portably handle '%zu' in our own printf formatting.
2017-04-27memento: Don't include unnecessary headers.Tor Andersson
2017-04-20Add annotation interfaces for open state/icon name/line endings.Sebastian Rasmussen
2017-04-20js: Push annotation error handling down to library.Sebastian Rasmussen
This makes is possible for JNI code to depend on the library for error handling.
2017-04-18Use splay trees for loading/merging cmaps.Robin Watts
This allows for overlaps, merges adjacent (mergeable) ranges and gets us properly searchable results. This causes 1 diff in the test suites (Bug694353.pdf), which is due to the fallback font not having a hypen present at UCS 0x2010.
2017-04-13Export fz_recognize_document and use it in java code.Sebastian Rasmussen
2017-04-13Move extension/mimetype detection to common function.Sebastian Rasmussen
A document handler normally only exposes a list of extensions and mimetypes. Only formats that use some kind of extra detection mechnism need to supply a recognize() callback, such as xps that can handle .xps-files unpacked into a directory.
2017-04-11Bug 697662: Support named actions to first/last/next/previous page.Sebastian Rasmussen
2017-04-11Add fz_asprintf function to allocate a string and format output.Tor Andersson
2017-03-31Remove Reap lock.Robin Watts
I can see no reason for having the reap lock now. We always hold the ALLOC lock when we need it, so just live with that.
2017-03-31Fix leaks of reaped object keys.Robin Watts
2017-03-29Happy New Year!Sebastian Rasmussen
2017-03-29Update README and version number.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-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-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-20Remove fz_drop_image_base.Robin Watts
2017-03-20Add Memento_label to fz_new_imageRobin Watts
2017-03-20Update API header documentationRobin Watts
Images, Document and Document Handlers.