summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-12-03Bug 695566 and 695567: Update MuJS submodule.Tor Andersson
2014-11-26Change incorrect loglevel of some messages from error to infomax
2014-11-26Change xref representation to cope better with sparse xrefs.Robin Watts
Currently each xref in the file results in an array from 0 to num_objects. If we have a file that has been updated many times this causes a huge waste of memory. Instead we now hold each xref as a list of non-overlapping subsections (exactly as the file holds them). Lookup is therefore potentially slower, but only on files where the xrefs are highly fragmented (i.e. where we would be saving in memory terms). Some parts of our code (notably the file writing code that does garbage collection etc) assumes that lookups of object entry pointers will not change previous object entry pointers that have been looked up. To cope with this, and to cope with the case where we are updating/creating new objects, we introduce the idea of a 'solid' xref. A solid xref is one where it has a single subsection record that spans the entire range of valid object numbers for a file. Once we have ensured that an xref is 'solid', we can safely work on the pointers within it without fear of them moving. We ensure that any 'incremental' xref is solid. We also ensure that any non-incremental write makes the xref solid.
2014-10-28more liberally accept page trees with unexpected contentSimon Bünzli
pdf_lookup_page_loc_imp currently throws if any object in the page tree is neither a /Pages node nor a /Page leaf. This unnecessarily rejects slightly broken documents such as the ones from https://code.google.com/p/sumatrapdf/issues/detail?id=2582 and https://code.google.com/p/sumatrapdf/issues/detail?id=2608 . pdf_count_pages_before_kid currently wrongly throws if a /Pages node doesn't contain any kids and correctly states so (which even seems to be permitted by the PDF specification).
2014-10-28fix memory leaks in load_sample_func and pdf_load_compressed_inline_imageSimon Bünzli
In load_sample_func, the stream is not closed and thus leaked if one of the fz_read_byte or fz_read_bits calls throws (which might happen e.g. on a Deflate data error). In pdf_load_compressed_inline_image, the allocated buffer is not freed if one of the stream initializers or the tile creation throws (fz_open_leecher does not take ownership of the stream).
2014-10-22Fix warnings.Tor Andersson
2014-10-12iOS: Remove CFBundleIcon* keys from the Info.plistJoseph Heenan
These are now generated by Xcode at build time from the asset catalogue, and the CFBundleIconFiles we had here was upsetting the app store validator.
2014-10-05iOS: Run at native res on iphone6/6+Joseph Heenan
All that is necessary is to add a launch xib.
2014-10-05iOS: tweak types to avoid warnings in 64 bit buildsJoseph Heenan
Still more warnings left.
2014-10-04iOS: minor cleans upsJoseph Heenan
unused variables / functions / potential uninitialised variable usage
2014-10-04iOS: convert app icons & launch image into image cataloguesJoseph Heenan
2014-10-04iOS: Enable various warnings to match current best practiceJoseph Heenan
2014-10-04iOS: Fix an analyser warningJoseph Heenan
In MuDocRef initialise. it spotted cases where self could be released twice after a failure.
2014-10-04iOS: Remove empty didReceiveMemoryWarning implementationJoseph Heenan
2014-10-04iOS: Fix a warning in xcode 6Joseph Heenan
scrollViewDidEndZooming takes a CGFloat.
2014-10-04iOS: Add missing [super viewWillAppear/Disappear] callsJoseph Heenan
Spotted by xcode6 analyser
2014-10-04iOS: Move instance variables from .h to .mJoseph Heenan
These are private details that, since changes in Xcode, no longer need to be exposed in the headers.
2014-10-04Avoid redefinition warning from clang when building cmapdump.cJoseph Heenan
In file included from scripts/cmapdump.c:19: scripts/../source/fitz/ftoa.c:30:23: warning: redefinition of typedef 'ulong' is a C11 feature [-Wtypedef-redefinition] typedef unsigned long ulong; ^ scripts/../source/fitz/strtod.c:30:23: note: previous definition is here typedef unsigned long ulong; ^ 1 warning generated. (Apparently in earlier versions of clang this is an error.)
2014-09-30Update change list for 1.6 release.Tor Andersson
2014-09-30Bump version number.Tor Andersson
2014-09-30Fix 695501: Intelligent cmap remapping.Tor Andersson
Use the actual ranges from the cpt-to-gid cmap to optimize the remapping of ToUnicode cmaps from cpt-to-unicode into gid-to-unicode format.
2014-09-24Update to latest MuJS.Tor Andersson
2014-09-23Fix 695501: check upper and lower bounds of CMap when computing ToUnicode.Tor Andersson
When inverting the CMap to create a ToUnicode, first check the actual range of input characters rather than relying only on the codespace range list.
2014-09-22Fix 695467: Add and use fz_ftoa function (like dtoa but with floats).Tor Andersson
The dtoa function is for doubles (which is what MuJS uses) but for MuPDF we only need and want float precision in our output formatting.
2014-09-22Ensure that TIFFs with resolution set to zero get sane values.Robin Watts
This is required for XPS, as otherwise images can be completely omitted.
2014-09-18android: Add note about NDK targets to ReadMe.Tor Andersson
2014-09-18android: Fix crash when external storage is missing.Tor Andersson
2014-09-17Fix whitespace.Tor Andersson
2014-09-17xps: Add fz_xml_is_tag to simplify tag matching.Tor Andersson
2014-09-17Improve XML parser.Tor Andersson
Add a whitespace preserving mode, for future use with XHTML. Also parse XHTML entities. This is not strictly according to spec, but for properly formed XML documents it should not matter.
2014-09-16Add missing file to VS solution.Robin Watts
Without this, we fail to find jpeg_cust_mem_init at link time on Windows.
2014-09-09Add missing files to VS2013 projectsMichael Vrhel
2014-09-09Rename of winrt to windows due to presence on gsview in this folder.Michael Vrhel
The contents of this folder will contain both winrt and gsview projects which are shared in a common visual studio 2013 solution.
2014-09-09Fix bug in text selection.Michael Vrhel
The code was doing the proper highlighting but failing to add all but the first character in the first selected line.
2014-09-09Minor addition to allow Page Up/Down to do previous/next page.Ray Johnston
2014-09-09Add -dNOCACHE option to XPS creation.Michael Vrhel
2014-09-09Add missing header file pdf-tools.h, Messages.resx and Messages.Designer.csMichael Vrhel
pdf-tools.h is used so that we can call into pdfclean_main.
2014-09-09Fix several issues in the project files. Also add missing App.config file.Michael Vrhel
2014-09-09Add unique icons for file types. Change to our ghost icon.Michael Vrhel
Also fix so that if file open fails we don't retry with that same file when we launch again. Add manifest so that tile is displayed ok in Windows 8.1.
2014-09-09Add check and state to avoid rendering same page on different threads.Michael Vrhel
The annotation display support that I added had introduced a bug where the same page may initially get rendered on different threads if you did rapid scrolling.
2014-09-09Fix scrolling issues pointed out by Ken. Remove unneeded grid in xaml.Michael Vrhel
2014-09-09Fix accidental commit of VS 12 changesMichael Vrhel
2014-09-09Add projects that will ensure the microsoft CRT files will be in mupdfnet.dllMichael Vrhel
2014-09-09Fix crashes, add annotations, more AA control, Keyboard commands, select ↵Michael Vrhel
all plus more. Includes xml, html, text save as, fix issues in window range that determines what pages are visible at a particular scaling. Fix very tricky to find problem in interface with gs. Managed code was freeing delegates that were allocated dynamically. It is not possible to pin these so they are now member variables.
2014-09-09Addition of registry for storing program state. Plus open with for gsview.Michael Vrhel
Also addition of AA on/off control.
2014-09-09Add in command key control. Add in ability to open jpeg and png images.Michael Vrhel
2014-09-09Add Drag-n-drop, Fix a few crashes. Clean up code.Michael Vrhel
2014-09-09Addition of much error handling for cases where we can't find the muPDF DLL ↵Michael Vrhel
or have the wrong one.
2014-09-09Add code to determine if we should be loading the 32 or 64 bit DLL for ↵Michael Vrhel
ghostscript.
2014-09-09Add error checking to catch when gs DLL is not found.Michael Vrhel