summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-02-28Force colorspaces to match with JPX images.Robin Watts
If the colorspace given in the dictionary of a JPX image differs from the colorspace given in the image itself, decode to the native image format, then convert. This goes a long way towards fixing "1439 - color softmask fails to draw jpx image.pdf" (aka hivemind.pdf). The lack of transfer function support hopefully explains the rest.
2013-02-27Bug 693624: Update mudraw and mutool to use Unicode entry points on windowsRobin Watts
Convert the unicode argv to utf8, and pass in to our existing main function.
2013-02-27Bug 693640: Fix interpolated painting of images going out of rangeRobin Watts
When calculating the texture position for interpolated painting we apply a voodoo correction. This was causing problems by taking us out of bounds; simply add some checks to avoid this taking us out of range. This causes many differences, all small, or progressions. In particular it solves several 'white lines' cases where images didn't quite line up.
2013-02-27Android: Update *.mk files to allow for non-arm android builds.Robin Watts
We could do with non arm builds of v8 to go with these.
2013-02-26Fix pdf_device confusing stroke and non-stroke alphaPaul Gardiner
2013-02-26Android: add support for highlight and underline markup annotations.Paul Gardiner
Highlight annotations currently come out opaque so aren't a lot of use.
2013-02-26Include required quadPoints entry in created markup annotations.Paul Gardiner
Also change the way we pass the text rectangles so that non-axis-aligned ones can be permitted, and relocate the code that calculates the strike-out lines from the bounding boxes
2013-02-26Android: implement annotation deletionPaul Gardiner
2013-02-26Implement annotation deletion, with necessary changes to partial updatePaul Gardiner
2013-02-22Android: add annotation-editing menu, triggered on annotation selectionPaul Gardiner
2013-02-22Android: support selection of annotationPaul Gardiner
2013-02-22Android: move selected text operations from PageView to MuPDFPageViewPaul Gardiner
2013-02-22Android: avoid unnecessary repeated set up of child viewsPaul Gardiner
This change showed up a bug where highlights may fail to show if passed in while the page was set as blank. That bug is also fixed in this commit
2013-02-22Android: add MuPDFCore.getAnnotationsPaul Gardiner
2013-02-22Add fz_get_annot_typePaul Gardiner
2013-02-20Bug 693639: Avoid heap overflow and leaks in error cases.Robin Watts
Avoid heap overflow in the error case in fz_end_tile. Avoid leaking all previously loaded annotations from pdf_load_annots if pdf_is_dict throws an exception. Various whitespace fixes. Many thanks to zeniko.
2013-02-20Bug 693639: fix UTF-8 BOM detection.Tor Andersson
A UTF-8 BOM followed by a UTF-16 BOM would treat the data as UTF-16 rather than UTF-8. Clean up the BOM detection logic. Thanks to zeniko.
2013-02-20Bug 693639: some convenience functions.Tor Andersson
Added primarily for use by SumatraPDF. Thanks to zeniko.
2013-02-20Bug 693639: be even more NULL in pdf_js_none.cTor Andersson
Thanks to zeniko.
2013-02-20Bug 693639: treat NULL scissor in display list as infinite rect.Tor Andersson
Thanks to zeniko.
2013-02-20Bug 693639: fix typo in ps calculator.Tor Andersson
Thanks to zeniko.
2013-02-20Bug 693639: fix overflow due to wrong type of intermediate variable.Tor Andersson
Thanks to zeniko.
2013-02-20Bug 693639: allow OpenXPS extension and XML namespaces.Tor Andersson
Thanks to zeniko.
2013-02-20Bug 693639: fix warnings.Tor Andersson
Thanks to zeniko.
2013-02-20Bug 693639: bring fitz.h in line with source use of restrict keyword.Tor Andersson
Thanks to zeniko.
2013-02-20Bug 693639: plug various memory leaks.Tor Andersson
Thanks to zeniko. Also ensure that pdf_free_annot copes with NULL.
2013-02-19Bug 693639: fix integer overflow in image_tiff.cTor Andersson
Thanks to zeniko.
2013-02-19Bug 693639: don't take references on global (static) resource objects.Tor Andersson
Thanks to zeniko.
2013-02-19Bug 693639: fix incomplete error handling in null device.Tor Andersson
Thanks to zeniko.
2013-02-19Bug 693639: fix potential NULL pointer dereference in base_context.cTor Andersson
Thanks to zeniko.
2013-02-19Bug 693639: Use strlcpy instead of strncpy!Tor Andersson
strncpy is *not* the correct function to use. It does not null terminate, and it needlessly zeroes past the end. It was designed for fixed length database records, not strings. Use fz_strlcpy and strlcat instead.
2013-02-19Fix whitespace.Tor Andersson
2013-02-14Change to Affero license.Tor Andersson
2013-02-14Update jbig2dec thirdparty to latest.Tor Andersson
2013-02-13Android: highlight reflow icon when in reflow modePaul Gardiner
2013-02-13Redraw reflow icons in Xara to get better antialiasing.Robin Watts
2013-02-13Add CHANGES file.Robin Watts
2013-02-13Update doc/multi-threaded.c for passing rect/matrix by reference.Tor Andersson
2013-02-13Update doc/example.c for passing rect/matrix by reference.Tor Andersson
2013-02-13Bump version number strings and dates for 1.2 release.Tor Andersson
2013-02-13Apple broke external scripts yet again.Tor Andersson
Disable the automatic "make generate" step from the build, since it doesn't work anymore. There appears to be some hidden environment setting used by the compiler which breaks external make compiling for host while Xcode is set to cross compile. This is a pointless waste of time to track down and fix, so now you will have to run the "make generate" step manually.
2013-02-13Update iOS app for rect/matrix pass by reference.Tor Andersson
2013-02-11Fix problem with text selection caused by 0399332d54Paul Gardiner
2013-02-11Android: factor out ReaderView's special handling of MuPDFView objectsPaul Gardiner
2013-02-11Android: factor out search from main activityPaul Gardiner
2013-02-06Fix Android build after reference/irect changes.Robin Watts
2013-02-06Rename bbox to irect.Tor Andersson
2013-02-06Solve potential problems with partial update.Robin Watts
When we run a display list we pass in an area for fast eliding of objects. Ensure that the area we pass in is always at least as big as the bbox with which we create display devices.
2013-02-06Add some 'restrict' qualifiers to hopefully speed matrix ops.Robin Watts
Also, move fz_is_infinite_rect and fz_is_empty_rect to be a static inline rather than a macro. (Static inlines are preferred over macros by at least one customers). We appear to be calling them with bboxes too, so add fz_is_infinite_bbox and fz_is_empty_bbox to solve this.
2013-02-06Change to pass structures by reference rather than value.Robin Watts
This is faster on ARM in particular. The primary changes involve fz_matrix, fz_rect and fz_bbox. Rather than passing 'fz_rect r' into a function, we now consistently pass 'const fz_rect *r'. Where a rect is passed in and modified, we miss the 'const' off. Where possible, we return the pointer to the modified structure to allow 'chaining' of expressions. The basic upshot of this work is that we do far fewer copies of rectangle/matrix structures, and all the copies we do are explicit. This has opened the way to other optimisations, also performed in this commit. Rather than using expressions like: fz_concat(fz_scale(sx, sy), fz_translate(tx, ty)) we now have fz_pre_{scale,translate,rotate} functions. These can be implemented much more efficiently than doing the fully fledged matrix multiplication that fz_concat requires. We add fz_rect_{min,max} functions to return pointers to the min/max points of a rect. These can be used to in transformations to directly manipulate values. With a little casting in the path transformation code we can avoid more needless copying. We rename fz_widget_bbox to the more consistent fz_bound_widget.