summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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.
2016-04-06Update platform/android/viewer/ReadMe.txtRobin Watts
Update description to cover the fact that we no longer need cygwin, and to strongly suggest using the Android Studio supplied SDK/NDKs.
2016-04-06Bump version number.Tor Andersson
2016-04-06epub: Avoid passing 'em' argument explicitly.Tor Andersson
It's implicit in the 'top' box.
2016-04-06epub: Handle font-size in nested inline elements.Tor Andersson
Point to the box struct rather than its style, so we can look at its resolved em size. Also make sure to resolve em sizes for inline boxes.
2016-04-06epub: Fix vertical-align: text-top and text-bottom.Tor Andersson
2016-04-06epub: Skip root box during layout so we don't apply page margins twice.Tor Andersson
2016-04-06epub: Remove debug logging printfs.Tor Andersson
2016-04-06Split encoded ligatures (as from PDF) properly in text extraction.Tor Andersson
2016-04-06epub: Try to keep to one fz_text per paragraph.Tor Andersson
We will need to split if the color changes, or an image is spliced in. List item bullets also get their own fz_text element.
2016-04-06epub: Change order of arguments to fz_draw_html.Tor Andersson
2016-04-06Fix java build for Bidi enum renames.Tor Andersson
2016-04-05Update CHANGES file.Robin Watts
2016-04-05Add 'Low Memory' mode to Mutool draw.Robin Watts
If used, PDF objects are cleared at the end of each page, and the store size is set to 1 byte, avoiding the caching of images. This trades repeated decoding of images/reading of file objects for memory usage. The purpose of this is to enable measurements to be made on the minimum possible memory level.
2016-04-05Add threaded operation to mudraw.Robin Watts
2016-04-05epub: Don't conflate dimensioned lengths with untyped numbers.Tor Andersson
2016-04-05Handle many-to-one and many-to-many clusters in structured text extraction.Tor Andersson
2016-04-05epub: Respect HTML 'dir' attribute.Tor Andersson
Default to "ltr" (unhelpfully, but that's the spec). Handle ltr, rtl, and auto values.
2016-04-05Clean up bidi enum names.Tor Andersson
And use the same enum for both the internal bidi code and the layout code.
2016-04-04Fixed signed/unsigned comparison warnings.Robin Watts
2016-04-04Fix multi-threaded leak of style context.Robin Watts
Either the style context shouldn't be shared, or it shouldn't be incremented when we clone it. Sharing it seems correct to me, but we should protect reading it against simultaneous changes.
2016-04-04epub: Add harfbuzz bypass for fonts without opentype tables.Tor Andersson
In certain simple circumstances, we can bypass harfbuzz shaping and gain a lot of performance.
2016-04-04epub: Simplify harfbuzz glyph cluster mapping and positioning.Tor Andersson
Remove the need for type punning, and make it behave more robustly for indic languages.
2016-04-04Always set glyph_count!Tor Andersson
We were setting it to zero if not building a bbox table, which caused havoc with the advance width caching.
2016-04-04Add glyph names to trace device output.Tor Andersson
2016-04-04epub: Add stripped Charis SIL font to use as the default font for EPUB.Tor Andersson
2016-04-04Fix typo in pdfwrite top-level matrix.Tor Andersson