summaryrefslogtreecommitdiff
path: root/source/fitz/context.c
AgeCommit message (Collapse)Author
2016-01-18Simplify try/catch macros.Tor Andersson
Use a pointer to the top error stack slot instead of access via array and index. Return the stack slot from fz_push_try.
2015-12-14Add 'const' to the context lock and alloc structure pointers.Robin Watts
This highlights the fact that we never alter the internals, and allows callers to pass in static const pointers.
2015-12-14Add user context field.Robin Watts
This may help the MuPDF JNI code, so it's likely to be useful for other users too.
2015-09-15epub: Remove useless lock/unlock calls when setting user CSS.Tor Andersson
2015-05-25Style context reference should be 1 after creationSebastian Rasmussen
2015-05-19epub: User stylesheets.Tor Andersson
Add -U option to mupdf and mudraw to set a user stylesheet. Uses a context to store user the stylesheet, just like the AA level.
2015-02-17Add helper functions to keep/drop reference counts with locking.Tor Andersson
Add locks around fz_path and fz_text reference counting.
2015-02-17Rename fz_close_* and fz_free_* to fz_drop_*.Tor Andersson
Rename fz_close to fz_drop_stream. Rename fz_close_archive to fz_drop_archive. Rename fz_close_output to fz_drop_output. Rename fz_free_* to fz_drop_*. Rename pdf_free_* to pdf_drop_*. Rename xps_free_* to xps_drop_*.
2015-02-10Add some Memento_labels to aid debugging of leaks.Robin Watts
2014-06-10Fix library/header version error message and makefile dependency.Tor Andersson
2014-01-07Introduce 'document handlers'.Robin Watts
We define a document handler for each file type (2 in the case of PDF, one to handle files with the ability to 'run' them, and one without). We then register these handlers with the context at startup, and then call fz_open_document... as usual. This enables people to select the document types they want at will (and even to extend the library with more document types should they wish).
2013-09-03Add FZ_VERSION define. Check header and library version compatibility.Tor Andersson
2013-06-20Rearrange source files.Tor Andersson