summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-04-26Improve fz_new_documentRobin Watts
Use a macro to make fz_new_document nicer (akin to fz_malloc_struct).
2016-04-26MSVC: Fix MSVC builds.Robin Watts
Some new files hadn't been added to the solution, and we were calling strcasecmp instead of fz_strcasecmp.
2016-04-26Add 'mutool run' documentation.Tor Andersson
2016-04-26murun: Don't use 'mupdf' object; make constructors and functions global.Tor Andersson
It's a lot of extra typing to prefix everything with "mupdf.".
2016-04-26murun: Print result of evaluating a line in interactive mode.Tor Andersson
2016-04-26murun: Support 'lineCap' to set start, end and dash caps together.Tor Andersson
2016-04-26murun: Automatically convert object argument to obj.writeObject().Tor Andersson
2016-04-26murun: Add wmode and bidi-level arguments to text walker callback.Tor Andersson
2016-04-26Change order of arguments to pdf_add_page etc.Tor Andersson
Resources are defined before they are used; so it's only logical to have the resource dictionary before the content buffer in the argument list.
2016-04-26pdfcreate: Use industry font name for built-in fonts.Tor Andersson
2016-04-26pdfmerge: Clean up error messages and fix try/catch variable error.Tor Andersson
2016-04-26Update CHANGES.Tor Andersson
2016-04-26Optimize pdf_lookup_agl.Tor Andersson
2016-04-26Add 'mutool convert' and new document writer interface.Tor Andersson
Only supports CBZ writing for now. Also add a zip file writer.
2016-04-26fb2: Add image support.Tor Andersson
2016-04-26fb2: Add basic FictionBook support.Tor Andersson
No images. The default stylesheet is preliminary, and will need improvements.
2016-04-26Add base64 string decoder.Tor Andersson
2016-04-26Rename fz_write_int32be to fz_write_int32_be to be consistent with ↵Tor Andersson
fz_read_int32_be.
2016-04-26epub: Support page-break-before/after: always, left and right.Tor Andersson
Does not support page-break-before/after: avoid.
2016-04-26epub: Add matching for [att], [att=val] and [att~=val] css selectors.Tor Andersson
2016-04-26svg: Add fz_new_display_list_from_svg function.Tor Andersson
2016-04-26Fix refcounting on SVG documents.Robin Watts
2016-04-26svg: Add SVG parser.Tor Andersson
svg: Implement graphics state stack. svg: Use idmap for symbol and use elements. svg: Put viewport and viewBox in state stack. svg: Rebase to version 1.9 master.
2016-04-26Fix fz_store thinko.Robin Watts
Previously, we would refuse to store any object in the store that was larger than the store limits. We'd also refuse to store any object that took the total store size over the limit. This was wrong. Consider the case where we have a store of 1 byte, and a page that repeatedly uses the same font. The first time we meet the font, we look in the store, it isn't there, we load it, and we try to store it. The current code refuses to store it, and we continue, putting that font into the display list. The next time we meet to the font, we look in the store, it still isn't there, we load it, and we try to store it. Again we refuse to store it, and that copy of the font goes into the display list. The net effect of this is that we end up using far more memory in total than we would have done had we stored the first one. The code here, therefore, changes the store to always store objects regardless of their size. Given that we have already loaded the objects into memory before we store them, this doesn't actually cost us any extra memory. If an object is dropped (bringing the reference count down to 1, being the reference for the stores copy), then the object is NOT freed instantly, but will be freed either on the next attempt to store an object, or on the next scavenging malloc.
2016-04-26Update mutool clean sanitize to clean annotations too.Robin Watts
2016-04-22pdf: Handle implicit identity crypt filtersSebastian Rasmussen
Fixes http://bugs.ghostscript.com/show_bug.cgi?id=696687
2016-04-22pdf: Remember to drop objects inserted into dicts.Sebastian Rasmussen
2016-04-22thirdparty: Update to openjpeg 2.1.0.Sebastian Rasmussen
2016-04-22bmp: Support alpha for 16- and 32-bit uncompressed images.Sebastian Rasmussen
2016-04-22gif: Render image into pixmap instead of temporary buffer.Sebastian Rasmussen
Also remove comment with links used for reference during implementation.
2016-04-21epub: Change ul disc styles for nested lists.Tor Andersson
2016-04-21xml: Add a missing case of skipping linebreak after an opening tag.Tor Andersson
2016-04-21Update jbig2dec submodule.Tor Andersson
2016-04-21Bump patch-level.Tor Andersson
2016-04-21Fix potential segfault when mapping JS strings to PDF.Tor Andersson
2016-04-21ios: Fix memory leak of outline controller.Tor Andersson
2016-04-21ios: Regenerate app icons from original source image.Tor Andersson
The original app icon is in docs/logo/mupdf-simplified-logo.png mutool draw -o Icon-120.png -w 120 mupdf-simplified-logo.png mutool draw -o Icon-167.png -w 167 mupdf-simplified-logo.png mutool draw -o Icon-72.png -w 72 mupdf-simplified-logo.png mutool draw -o Icon-72@2x.png -w 144 mupdf-simplified-logo.png mutool draw -o Icon-76.png -w 76 mupdf-simplified-logo.png mutool draw -o Icon-76@2x.png -w 152 mupdf-simplified-logo.png mutool draw -o Icon.png -w 57 mupdf-simplified-logo.png mutool draw -o Icon@2x.png -w 114 mupdf-simplified-logo.png
2016-04-21Make bit fields in fz_text_span unsigned.Tor Andersson
markup_dir being a signed 2-bit int meant that it could not represent FZ_BIDI_NEUTRAL without overflow; so we always ended up creating a new text span for each glyph with that directionality.
2016-04-20Fix bug 696718 by deferring creation of the outline until it's about to be ↵fredrossperry
shown.
2016-04-19add 167x167 iconfredrossperry
2016-04-19Add mutool mergeMichael Vrhel
This commit adds a page merging tool. The tool demonstrates the use of object grafting. The object grafting function recursively goes through the object to add all referenced objects. A map is maintained to ensure that objects that have already been copied are not copied again.
2016-04-18Fix broken documents after sanitizeRobin Watts
The DP and BDC operators, are used in the form: <NAME> <PROPERTIES> <OPERATOR> where <PROPERTIES> can either be a name (that can be looked up to get a dictionary) or an inline dictionary. What the spec doesn't say is that the two are not interchangeable. If you resolve the name to an inline dict, then insert it, Acrobat will give an error for some (but not all) cases. The interpreter currently resolves any references, and passes the resolved version into the operator handling function. This precludes us outputting the original form. We therefore update it to pass both the raw and the cooked versions in. This has no effect on MuPDFs own handling of anything, it just enables the buffer device to output a correct stream.
2016-04-18Fix corruption of file using sanitize.Robin Watts
When sanitizing a file, while cleaning with decompression, I was seeing a flate problem reported. The issue is that pdf_open_filter was passing pdf_open_raw_filter the orig_num as both num and orig_num. This was causing us to find an fz_buffer attached to the (wrong) xref entry and to open that instead of the underlying stream. The fix is to propogate num a bit further.
2016-04-18Fix leak of pdf_obj.Robin Watts
Use pdf_dict_put_drop rather than pdf_dict_put to avoid leaking int pdf_obj.
2016-04-18Update MuJS: Fix bug where function length interacts badly with gettop.Tor Andersson
2016-04-12Fix some warnings.Robin Watts
Remove some bonkers conditions arising (presumably) as a result of search and replace.
2016-04-12Fixes for building on XCode 7.3, and to use copies of images from the ↵fredrossperry
Android viewer project.
2016-04-12Silence some warnings in release builds.Robin Watts
2016-04-12Fix PDF annotations not appearing after creation.Robin Watts
Caused by a mismatch in the annotation creation/loading code.
2016-04-11Bug 696696: Avoid leak when cleaning with sanitize.Robin Watts
If we rewrite a page content stream, and then drop that entire page we shouldn't leak the buffer. Or to put it another way, when we change the obj for an xref entry, ditch the cached stm_buf.