summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-05-07Bug 695112: only patch height values in JPEG streamsSimon Bünzli
If the reported height is 0 or too large, use the image size reported in the PDF itself instead (in the case of height 0, the JPEG library is supposed to read the correct value from the DNL segment, but libjpeg doesn't support that).
2014-05-07Fix 694428: use system CURL library if available.Tor Andersson
2014-05-07Fix 694510: Detect all ways to maximize a window in win32.Tor Andersson
SC_MAXIMIZE is only sent when maximizing via the maximize button. Dragging to the screen edge, double clicking the title bar or WinKey+Up do not generate an SC_MAXIMIZE message. Detect when gettincg a WM_SIZE message with SIZE_MAXIMIZE instead.
2014-05-07Fix 695112: patch JPEG streams with missing dimensionsTor Andersson
If a JPEG stream is missing valid values for width/height (usually -1), Adobe Reader substitutes these using the values read from the PDF object. This can be done by scanning and patching the data before passing it to libjpeg. Thanks to zeniko for the patch.
2014-05-07Fix 693313: increase the zoom range and use fixed steps.Tor Andersson
Use an explicit list of resolutions for +/- zoom stepping.
2014-05-07iOS: add extra icon sizes for iOS 7Paul Gardiner
2014-05-07Bug 694801: fast_cmyk_to_rgb caching broken.Robin Watts
fast_cmyk_to_rgb had a simple 1 place cache to avoid recalculating the same conversions again and again. The implementation was broken though, both in C and ARM code versions. This seems to fix it.
2014-05-06Fix 694909: revert "Force colorspaces to match with JPX images." and ...Tor Andersson
... instead convert a JPEG2000 used as a soft mask into grayscale. This is more robust than trusting the PDF specified colorspace over the internal JPX colorspace. The spec implies that in a colorspace conflict, the internal JPX colorspace should be used. The PDF colorspace may be a DeviceN or Separation colorspace. DeviceN and Separation colorspaces are not valid destination colorspaces, so we may not always be able to convert the internal JPX colorspace into the PDF specified colorspace. Converting from the internal colorspace into grayscale is more robust, and solves the issue that the original commit was intended to fix.
2014-05-05Fix 695098: don't use atoi() on non-zero-terminated buffer.Tor Andersson
2014-05-05Fix 695105: openjpeg configuration for big-endian.Tor Andersson
Stupid unportable code needs stupid unportable preprocessor macros. This only works with GCC, but should be good enough since I expect anyone using a big-endian machine to also use a GCC compatible compiler.
2014-05-05Fix 695207: printf format bug in mutool info.Tor Andersson
2014-05-02Fix 692171: Guard against .incbin on Intel's C compiler.Tor Andersson
2014-05-02Print error when trying to open document without any pagesSebastian Rasmussen
2014-05-02Fix warning in debug message for CURL in X11 viewerSebastian Rasmussen
2014-05-02Raise CURL transfer size from 4KByte to 1MByte in X11 viewerSebastian Rasmussen
Previously, the overhead for the HTTP requests and responses was too high, e.g. pdfref17.pdf would result in almost 8000 separate HTTP requests (but with this patch about 30.
2014-05-02Initialize timeout earlier in x11 viewerSebastian Rasmussen
Previously any warning displayed at the top of the page would never disappear because the display timeout being set would be overwritten by the later initialization.
2014-05-02Update pkgconfig file for the debian librarySebastian Rasmussen
2014-05-01Fix 694084: compute number of segments in radial shading from radius.Tor Andersson
2014-04-27Bug 695171: Pointer error when padding an fz_concat machineRobin Watts
When we return the padding byte in an fz_concat stream, ensure that we remember to increment rp to point just past in. If not, then we'll read 2 whitespace chars out. This is fine unless we try and fz_unread_byte the first one, when we'll leave rp pointing to an out of buffer address. Credit to Malc for the bisecting/debugging that got me to the fix. Many thanks.
2014-04-24iOS: remove the annotations button for non-interactive document typesPaul Gardiner
2014-04-24iOS: perform rendering for AirPrint in stripsPaul Gardiner
2014-04-24iOS: fix AirPrint quality to 300 dpiPaul Gardiner
2014-04-24iOS: refactor AirPrint code ready for printing at higher res and in stripsPaul Gardiner
2014-04-24iOS: copy files from Inbox to Documents so that they can be alteredPaul Gardiner
2014-04-24iOS: add support for sharing documents with other appsPaul Gardiner
2014-04-23Fix 693419: always load CIDToGIDMap if it exists.Tor Andersson
OpenType CFF fonts are detected as TYPE1 by ft_kind. Relaxing the test for when to load a CIDToGIDMap lets us load it even for OpenType fonts.
2014-04-23Fix 693391: simplify warning messageTor Andersson
Don't print the code point number, to let the inhibition of multiple identical warnings kick in.
2014-04-23Fix 693518: update Makerules and debian/controlTor Andersson
Debian doesn't have libopenjp2 as a package (whereas gentoo does) so I've removed it from the control file. You'll need to use the thirdparty submodule for openjpeg2 until such a time as it exists.
2014-04-23Fix 692986: add OpenBSD to list of systems that may have .incbinTor Andersson
2014-04-23Fix 692866: improved handling of newlines when copying text.Tor Andersson
Only add newlines between selected lines of text.
2014-04-23Fix bug 693580 by skipping xml tag namespace prefixes.Tor Andersson
fts_5904.xps and fts_5905.xps use namespace prefixes. Work around that by ignoring the namespace prefix for tag names. A more robust solution would be to expand or record the tag and attribute namespaces in the fz_xml node structure, but that's a overkill for our current needs.
2014-04-22Handle errors from curl by eventually throwingSebastian Rasmussen
Previously errors from curl_easy_perform() were never checked. This caused mupdf to enter an eternal loop, repeatedly trying to get data to parse from the remote host.
2014-04-22Error out on unsupported encrypted zip filesSebastian Rasmussen
2014-04-22Take on curl change from Sebastian.Robin Watts
This should get us better errors out.
2014-04-22Tweak Intent usage for ChoosePDFActivityRobin Watts
ChoosePDFActivity can be used either to select PDF/XPS etc files, or to select key files (for digital signatures). The choice of which one to use is made according to the action string in the Intent with which the activity is invoked. Previously we would look for Intent.action.MAIN and take this to mean "Look for PDF files", and anything else to mean look for key files. Unfortunately, if you start the activity directly using adb then the action string is null, so we look for key files. The fix is to use a specific (custom) string for key files and for everything else to be treated as a request for PDF files.
2014-04-22Fix iOS formatting.Tor Andersson
2014-04-21Add share iconsPaul Gardiner
2014-04-18iOS: use bitmap based printingPaul Gardiner
allows printing of file types other than PDF
2014-04-18iOS: add AirPrint supportPaul Gardiner
2014-04-11Invalidate cached page count value when inserting and deleting pages.Tor Andersson
2014-04-11Add all form field flags. Check flags before marking fields dirty.Tor Andersson
NoExport (and ReadOnly) fields shouldn't mark the document for saving.
2014-04-02Remove V8 section from android readme.Tor Andersson
2014-04-02Bump the version number to 1.4.Tor Andersson
2014-04-02Update CHANGES file with changes since 1.3.Tor Andersson
2014-04-02iOS: in 7.0 and above, allow the system to tint our custom menu buttonsPaul Gardiner
2014-04-02iOS: ensure that the slider has the correct size if hidden during device ↵Paul Gardiner
rotation
2014-04-02Update examples.Tor Andersson
2014-04-01Solve crash (NullPointerException) when cancelling from password promptRobin Watts
Attempt to open a file that needs a password, and you will get a dialogue box. Hit cancel on this, and the program crashes. This is due to an attempt to release the bitmaps on a document view that does not exist. Simple fix.
2014-04-01Fix Android build w.r.t. mujs.Robin Watts
The get_globals helper function only works on non-class objects. Hence 'MuPDFCore_javascriptSupported' can't be a static function.
2014-04-01Various android fixes.Tor Andersson
Update Android build to cope with new stream implementation. Fix a couple of typos in the android build files.