summaryrefslogtreecommitdiff
path: root/platform
AgeCommit message (Collapse)Author
2014-01-07Introduce 'document handlers'.Robin Watts
We define a document handler for each file type (2 in the case of PDF, one to handle files with the ability to 'run' them, and one without). We then register these handlers with the context at startup, and then call fz_open_document... as usual. This enables people to select the document types they want at will (and even to extend the library with more document types should they wish).
2014-01-06add stub files for JPEG-XR supportSimon Bünzli
See SumatraPDF's repo for a Windows-only implementation using WIC.
2014-01-06Android: for scroll steps, use postOnAnimation when availablePaul Gardiner
Using postOnAnimation in place of post noticably improves scroll smoothness. Also avoid posting multiple runnables unnecessarily.
2014-01-03Android: fix buildPaul Gardiner
2014-01-02Add rebinding for fz_streams.Robin Watts
2014-01-02Bug 694732: Android: draw single point strokes when inkingPaul Gardiner
Make single-point strokes display by special casing them as circles. Thanks for Michael Cadilhac for the suggestion.
2014-01-02Bug 694753: Android: Recompute the patch on PageView.update()Paul Gardiner
In some cases freshly-created annotations could fail to appear because the HQ patch was being left in place even when zoomed fully in, and when in that state, the patch was not updated. The bug was usually hidden by an onLayout call being triggered with an out- of-date patch, which causes the HQ patch to be removed. The bug is fixed by having addHq remove the patch when fully zoomed out. Since now addHq may sometimes add the patch and sometimes remove it, I've renamed it to updateHq. Correctness of this fix has not been checked because I was unable to trigger the bad behaviour on my test device.
2013-12-18Android: a few improvements to the view handlingPaul Gardiner
While scrolling, avoid some overheads to do with image scaling that need updating only on a zoom-level change Remove a pointless invalidate call. Avoid calls to removeViewInLayout and removeAllViewsInLayout that were being made in functions not called from onLayout
2013-12-17Bug 694831: Check width and height of bitmap, not width and widthRobin Watts
Thanks to Dale King for reporting this.
2013-12-16iOS: add javascript supportPaul Gardiner
2013-12-14Add in error trapping. Fix warnings. Remove Win8 deprecated calls. Fix ↵Michael Vrhel
issues with surface thumb rendering. Also, make updates for changes made to font names and 3rd party file structures.
2013-11-28Put thirdparty config headers in separate directories.Tor Andersson
Only -I the config header directory if building the thirdparty library, not if using the system library. Fix bug 694808.
2013-11-28Update mupdf to use latest openjpeg pulled from ghostpdl.Robin Watts
The OpenJPEG in gs is v2, with various patches for fixes. These are in the process of being passed upstream. We now automatically pull the openjpeg tree out of GhostPDL and put it in as one particular branch in the thirdparty/openjpeg.git repo. Change to track this in MuPDF. This is in keeping with what we have been doing with the jbig2dec repo for a while now.
2013-11-27iOS: some fixes for iOS 7Paul Gardiner
2013-11-26Import URW fonts version 1.10 converted to CFF by FontForge.Tor Andersson
2013-11-22iOS: fix white-space inconsistencyPaul Gardiner
2013-11-22iOS; remove use of deprecated functions and fix other warningsPaul Gardiner
2013-11-22iOS: support annotation deletionPaul Gardiner
2013-11-22iOS: hold widget rectangles using document coordinatesPaul Gardiner
2013-11-20iOS: support creation of Ink annotationsPaul Gardiner
2013-11-19iOS: add support for creating markup annotationsPaul Gardiner
2013-11-16Increase allocation to include room for string terminator.Robin Watts
Thanks to 'tom' from irc for pointing this out.
2013-11-14Update WinRT project to Windows 8.1 / VS 2013. Fix several issues with zooming.Michael Vrhel
2013-11-11DirectX printing addedMichael Vrhel
After much research it was determined that use of the DirectX 2D methods is the proper way to add printing support to a Windows 8 application. This enables the pages to be rendered as they are requested by the print thread. This occurs for both the print preview screen as well as the print to the output device.
2013-11-11Add tree structure to win32 build.Tor Andersson
2013-11-07iOS: fix non-appearance of buttons for files with no outlinePaul Gardiner
2013-11-04Fix of tab/space issues as well as changing thumbnail scale look ahead to ↵Michael Vrhel
+/- 2. Thanks to Robin for catching this.
2013-11-04Addition of printing support.Michael Vrhel
This uses the xaml printing methods. It is likely that I need to go do a DirectX approach since the xaml printing method could run into memory problems as it seems the architecture requires all the pages to be rendered prior to the print job even starting. Currently checking on this with a contact at MS. I wanted to get this code in place now since it is working and it has the needed framework for much of what we want. A change to DirectX requires a changes in the solution file that may be complicated and so it makes sense to do a split here with respect to providing printing support.
2013-11-04Fix UI so that consistent zoom size is maintained as pages changed.Michael Vrhel
Also fix issue that occurs in Windows 8.1 with an unhandled exception if a mouse scroll occurs before a document is even opened. Fix issue with keyboard based update of page slider.
2013-10-23Fix so that multi-threaded rendering of display list works.Michael Vrhel
Proper use of mutex lock in areas where we multiple threads can not be accessing the document or page level objects at the same time. With this fix, multiple threads can be rendering different display lists at the same time. Also fix for use of page selection scroll bar so that it does not render the page until the user lifts off the bar. This is the same as the Android app and avoids smaller devices getting overloaded if you do rapid scrolling in a document.
2013-10-16iOS: add support for selecting form choice fieldsPaul Gardiner
2013-10-16iOS: use partial updates to display annotation changesPaul Gardiner
2013-10-16iOS: keep reference to the fz_pixmaps.Paul Gardiner
2013-10-16iOS: support filling in of text form fieldsPaul Gardiner
2013-10-10Fix broken winRT project by adding new glyph.c file.Michael Vrhel
2013-10-09iOS: ensure link highlights scale correctly on zoom and stay visiblePaul Gardiner
2013-10-09iOS: implement internal-link followingPaul Gardiner
Also: add hooks for the other link types remove unnecessary protocol from MuPageViewReflow turn off optimizations for the debug build
2013-10-04Android: Fix reference overflow in mupdf.cRobin Watts
Ink attachments of more than 512 points can run us out of local references. Fix this by freeing as we go.
2013-10-02iOS: unify the drawing of the main image and the tilePaul Gardiner
2013-10-02iOS: rework some positioning calclationsPaul Gardiner
The new code yields the same result as that that it replaces, but might be easier to understand.
2013-10-02iOS: Introduce use of display listsPaul Gardiner
Also add exception handling around library calls
2013-09-25Android: while adjusting reflow zoom, refresh only the visible pagePaul Gardiner
Also fix a race condition where an attempt to set the zoom might precede the loading of html into the WebView
2013-09-25iOS: while adjusting reflow zoom, refresh only the visible pagePaul Gardiner
At end of gesture all pages are refreshed so that newly-becoming-visible pages appear at the correct zoom.
2013-09-24iOS: add reflow modePaul Gardiner
2013-09-24iOS: use ObjC-level ref counting to control lifetime of fz_documentPaul Gardiner
With the latest version if iOS, timing changes were causing crashes during close down of a MuDocumentController. This change isolates us from those changes.
2013-09-24Android: fix missing fz_varsPaul Gardiner
2013-09-17iOS: split the classes into separate filesPaul Gardiner
2013-09-17iOS: use the background thread for CGDataProviderCreateWithData's callbackPaul Gardiner
2013-09-16iOS: avoid XCode's passed environment breaking the "generated" buildPaul Gardiner
2013-09-16Android: remove use of Bitmap holder and avoid memory churnPaul Gardiner
Now use one-time allocation of page-sized bitmaps