Age | Commit message (Collapse) | Author |
|
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).
|
|
See SumatraPDF's repo for a Windows-only implementation using WIC.
|
|
Using postOnAnimation in place of post noticably improves scroll
smoothness. Also avoid posting multiple runnables unnecessarily.
|
|
|
|
|
|
Make single-point strokes display by special casing them as
circles. Thanks for Michael Cadilhac for the suggestion.
|
|
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.
|
|
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
|
|
Thanks to Dale King for reporting this.
|
|
|
|
issues with surface thumb rendering.
Also, make updates for changes made to font names and 3rd party file structures.
|
|
Only -I the config header directory if building the thirdparty library,
not if using the system library.
Fix bug 694808.
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Thanks to 'tom' from irc for pointing this out.
|
|
|
|
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.
|
|
|
|
|
|
+/- 2. Thanks to Robin for catching this.
|
|
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.
|
|
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.
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Also:
add hooks for the other link types
remove unnecessary protocol from MuPageViewReflow
turn off optimizations for the debug build
|
|
Ink attachments of more than 512 points can run us out of local
references. Fix this by freeing as we go.
|
|
|
|
The new code yields the same result as that that it replaces, but might
be easier to understand.
|
|
Also add exception handling around library calls
|
|
Also fix a race condition where an attempt to set the zoom might precede
the loading of html into the WebView
|
|
At end of gesture all pages are refreshed so that newly-becoming-visible
pages appear at the correct zoom.
|
|
|
|
With the latest version if iOS, timing changes were causing crashes
during close down of a MuDocumentController. This change isolates
us from those changes.
|
|
|
|
|
|
|
|
|
|
Now use one-time allocation of page-sized bitmaps
|